How do I make Jenkins build fail when Maven unit tests fail?
You can add -Dmaven.test.failure.ignore=false
to the MAVEN_OPTS
if you click on Advanced button in the Build section of your Jenkins Job.
See Maven Surefire Plugin - surefire:test options for reference.
Use Text Finder plugin. Configure it to look for There are test failures
and downgrade the build to FAILED