This repo contains an implementation of a gRPC service using Micronaut and a Cucumber integration test that fails to start the embedded Micronaut gRPC server.
In addition, there is a disabled unit test demonstrating that the service actually works without Cucumber.
Clone this repo.
This reproduces the issue reported in the StackOverflow article Cucumber Micronaut test: Embedded gRPC server not starting
mvn clean verify
- In one terminal session, run the gRPC server:
mvn compile exec:exec
- In another terminal session
- Remove, or comment out, the
@Disabled
annotation on the unit test insrc/test/java/com/example/helloworld/HelloWorldTest.java
- Run the unit test,
mvn install
- Remove, or comment out, the