New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Add new fail
config failure policy
#2860
Comments
@pavetok - TestNG is already returning back a return code of |
@pavetok - If you are using Jenkins, you should perhaps check and ensure that the recommendation in this stackoverflow thread is done. Add |
@krmahadevan - We are using TeamCity and by default this option disabled in the surefire plugin https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#testFailureIgnore |
@krmahadevan - Code of |
If you read the link that I shared, it also talks about the same thing but this gets enabled by Jenkins. Maybe TeamCity is doing the same thing too? Have you tried setting it and then observing if there is any difference in behavior ?
The exit will depend on which configuration had a failure. If it was a If you would want to abort the execution from moving further after any failure, I think you can do the same with a TestNG listener, but throwing a |
TestNG Version
LATEST
Problem
Can't to fail fast CI build right after configuration method failure.
Maven Surefire has option
skipAfterFailureCount
. It allows us to fail E2E tests build after first test method failure. So we can investigate issue in relevant stand state. But we can't achieve the same for configuration method failures.Solution
Add new
fail
config failure policy. So all test methods in test class would be failed and CI build would be failed asap too.The text was updated successfully, but these errors were encountered: