How to write something in sure fire reports without using Assert?
Question
I am using Junit and Maven along with selenium. For reporting i am using surefire plugin. My requirement is to update the surefire reports with message on failure. It can be done using Assert
but it will abort the test case. But i dont want to abort it but to just report it.
Solution
you can use the maven.test.failure.ignore property (system property on command line) like:
mvn -Dmaven.test.failure.ignore=true
or to ignore failures during build process you can use the configuration for the maven-surefire-plugin:
<configuration>
.
<testFailureIgnore>true</testFailureIgnore>
.
</configuration>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow