简体   繁体   中英

Allure reports showing the testng tests that are not run as 'Broken'

When generating allure reports for TestNG tests, the tests that are not run are shown as 'broken' under xUnit. The default TestNG report shows the correct count of test cases that are run, but allure reports shows all the tests from testng.xml including those that are not run.

Allure marks all tests which has ended with unexpected exception (is not instance of AssertionError ) as BROKEN . It seems that there is an exception some where in cofiguration methods, I suppose. And yeah, Allure show all tests, including configuration methods and disabled tests, you can fix it in your custom adaptor.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM