Why are the executed tests not counted when using maven failsafe #3668
Unanswered
dragos-panzaru-md
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have attached my pom.xml.
pom.txt
My runner class is in src/test/java/runners/RunSuite.java:
`package runners;
import org.junit.platform.suite.api.*;
import static
io.cucumber.junit.platform.engine.Constants.*;
@suite
@IncludeEngines("cucumber")
@SelectPackages("features")
@ConfigurationParameter(key = GLUE_PROPERTY_NAME, value = "stepDefinitions")
public class RunSuite {
}`
My feature files are in src/test/resources.
In junit-platform.properties I have the following settings:
cucumber.execution.parallel.enabled=true
cucumber.execution.parallel.config.strategy=fixed
cucumber.execution.parallel.config.fixed.parallelism=5
cucumber.execution.parallel.config.fixed.max-pool-size=5
cucumber.plugin=io.cucumber.core.plugin.SerenityReporterParallel,pretty
When I execute the command
mvn clean verify
the tests are executed and the serenity report gets generated, but in the console output from the mvn command , aIthough I see how the tests are executed step by step, at the end it says "Tests run: 0, Failures: 0, Errors: 0, Skipped: 0" and the build is successful even if I have test failures.[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 35.87 s -- in runners.RunSuite
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO]
[INFO] --- serenity:4.2.34:aggregate (serenity-reports) @ companion-mobile-tests ---
[INFO] GENERATING REPORTS FOR: C:\Users\x.y\Desktop\Projects\tests
[INFO] GENERATING REPORTS USING 32 THREADS
[INFO] GENERATING SUMMARY REPORTS...
[INFO] GENERATING REQUIREMENTS REPORTS...
[INFO] GENERATING RESULT REPORTS...
[INFO] GENERATING ERROR REPORTS...
[INFO] Test results for 2 tests generated in 6.7 secs in directory: file:/C:/Users/x.y/Desktop/Projects/tests/target/site/serenity/
[INFO] - Full Report: file:///C:/Users/x.y/Desktop/Projects/tests/target/site/serenity/index.html
[INFO] GENERATING SINGLE PAGE HTML REPORT FROM C:\Users\x.y\Desktop\Projects\tests\target\site\serenity
[INFO] OUTPUT WILL BE GENERATED IN C:\Users\x.y\Desktop\Projects\tests\target\site\serenity
[INFO] FOUND 2 TEST OUTCOMES
[INFO] - Single Page HTML Summary: file:///C:/Users/x.y/Desktop/Projects/tests/target/site/serenity/serenity-summary.html
[INFO] - Full Report As React Based Single Page Application: file:///C:/Users/x.y/Desktop/Projects/tests/target/site/serenity/navigator/index.html
[INFO]
[INFO] --- failsafe:3.5.3:verify (default) @ tests ---
[INFO] No tests to run.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:06 min
[INFO] Finished at: 2025-07-29T00:01:10+03:00
[INFO] ------------------------------------------------------------------------
Beta Was this translation helpful? Give feedback.
All reactions