0

I have AWS lambda with Java 21 and integration tests with cucumber using test containers and cucumber junit platform (including @Suite).

When I am running tests from it/java package, Cucumber tests are running twice—once under "default package" and again under ITTestRunner (runner class). Second bunch of tests are even failing with Connection refused: getsockopt.

NOTE: tests are running once when executed through ITTestRunner class directly

NOTE: When executing unit tests through test/java package, integration tests are running together with unit tests.

Tried excluding from surefire, different types of configuration from pom.xml in surefire and failsafe, different annotations etc

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.