Skip to content

Cucumber Micronaut test: Embedded gRPC server not starting #705

@mlresnick

Description

@mlresnick

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions