Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cucumber Micronaut test: Embedded gRPC server not starting #705

Open
mlresnick opened this issue May 16, 2023 · 0 comments
Open

Cucumber Micronaut test: Embedded gRPC server not starting #705

mlresnick opened this issue May 16, 2023 · 0 comments

Comments

@mlresnick
Copy link

Issue description

I'm trying to write some integration tests using Cucumber for a Micronaut gRPC application. Micronaut successfully launches its embedded gRPC server when run from the command line (java -jar ...). The embedded gRPC server starts when a unit test with the @MicronautTest annotation is run (mvn install). However, when the Cucumber tests are run from the command line (mvn verify), Micronaut starts, but not the embedded gRPC server.

As a result the integration test gets an "UNAVAILABLE" gRPC error because there's nothing for the client in the integration test to connect to.

I've used modified information from Cucumber with Micronaut to integrate the two utilities.

There is a cucumber-micronaut-bean-failure repo with the code. See the README for details on running the integration (Cucumber) and unit tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant