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