I wanna stop test execution when one of them failed. I tried skipAfterFailureCount config in pom xml and mvn -Dsurefire.skipAfterFailureCount=1 as a command line argument but still has no effect. Is there a clear way to do this ?
PART OF MY POM.XML:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
<configuration>
<skipAfterFailureCount>1</skipAfterFailureCount>
</configuration>
</plugin>
I'm using JUnit 5.6.2