testng: Getting Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test (default-test) on project TestSetup: There are test failures.
TestNG Version
6.14.2
I am using the following components.
TestNG -6.14.2 jdk -9.0.1 maven-compiler-plugin - 3.7.0 maven-surefire-plugin - 2.20.1
Expected behavior
Actual behavior
Maven build getting failed due to Assertion failure in the one of the tests of the test suite. with following error.
Getting Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project TestSetup: There are test failures.
INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:08 min
[INFO] Finished at: 2018-02-07T15:51:00+05:30
[INFO] Final Memory: 13M/44M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project TestSetup: There are test failures.
[ERROR]
[ERROR] Please refer to D:\TestWorkspace\TestSetup\target\surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Is the issue reproductible on runner?
- [YES ] Maven
- [YES ] Eclipse
Test case sample
Any test case with Assertion failure.
Please help on this.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 15 (3 by maintainers)
After installing below plugin, isuue was resolved
Hii Tibor,
mvn install -DskipTests it’s really work fine.
Thank u so much.
Can you check it our with
2.21.0-SNAPSHOT. Do not download it from Nexus. Clone the branchSUREFIRE-1463, build itmvn install -DskipTestsand run your projectofflinewithmvn -o test. I am pretty sure that this would work.