testng icon indicating copy to clipboard operation
testng copied to clipboard

Feature request: Add new `fail` config failure policy

Open pavetok opened this issue 1 year ago • 5 comments

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.

pavetok avatar Dec 26 '22 06:12 pavetok