How to apply a TestNg's 'configfailurepolicy="continue"' param in IDEA
Answered
Hi,
Is there any chance to continue tests if @BeforeMethod failed for any previous test? NOTE: tests are running fine if I launch them via testng.xml with param
configfailurepolicy="continue"
but if I run my test class from IDEA (Ctrl+Shift+F10), then all tests are being ignored after fail in @BeforeMethod.
I investigated this and found IDEA creates a temp-testng-customsuite.xml and use it as a pattern for TestNg. Is it possible to inject configfailurepolicy="continue" param to the temp-testng-customsuite.xml?
Thank you
BR
Vladimir
Please sign in to leave a comment.
Hello Vladimir,
Please clarify why don't you use Shift+F10 to run the current configuration or Alt + Shift + F10 to run the selected configuration (if it's already created)? Thank you