Feature request: Do not fail the Maven build for a failed test
See original GitHub issueWhen running npm test
(for example) and if it fails, the whole Maven build will fail too.
Would it be possible to make the plugin act differently for goals invoked during test
and integration-test
phases so that failures in those are only reported as test failures?
If you can provide some guidance on if/how this can be achieved, I’d gladly take on the task of implementing it.
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Maven build won't fail when karma test fails #613 - GitHub
I tried to run a failed java junit test, it caused the maven build to fail. but karma test fail still will not...
Read more >jenkins - How can I fail Maven build if surefire:test goal fails?
I am asking this question in the context of running tests, excuted by Maven Surefire, on Jenkins. Currently, if 1 or all tests...
Read more >Make maven 3 --fail-never flag not fail the job - Jira Atlassian
I have maven 3 task 'clean' configured that is first in the build Stage. The Maven 3 goal is set like this: --fail-never...
Read more >Maven Failsafe Plugin – Introduction
If you use the Surefire Plugin for running tests, then when you have a test failure, the build will stop at the integration-test...
Read more >New option for the sonar sonar-maven-plugin to allow failed ...
I've found that sonar.qualitygate.wait fails the build if the quality gate is broken - what IMHO is missing is an option to wait...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
While the feature has been added, the opposite behavior is now broken i.e. the builds now never seem to fail, even with
maven.test.failure.ignore
set tofalse
.@kaqqao @eirslett
I ran into this issue yesterday. The behavior does appear broken in 1.4 (failures during the test phase are always ignored). In 1.6 it works as expected. In these examples, I’ve introduced a failing test case that is run via
gulp
+gulp-jest
.Run a gulp build that finishes with exit code 1:
Run again with the
maven.test.failure.ignore
property set:Also thanks to the contributor for helpful output like this:
Two small suggestions that I could open a PR for if you’re willing @eirslett
testFailureIgnore
and whether failures will result in a broken build, and