简体   繁体   English

Allure 报告显示未作为“Broken”运行的 testng 测试

[英]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.为 TestNG 测试生成诱惑报告时,未运行的测试在 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.默认的 TestNG 报告显示运行的测试用例的正确计数,但诱惑报告显示 testng.xml 中的所有测试,包括未运行的测试。

Allure marks all tests which has ended with unexpected exception (is not instance of AssertionError ) as BROKEN . Allure 将所有以意外异常(不是AssertionError实例)结束的测试标记为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.是的,Allure 显示所有测试,包括配置方法和禁用测试,您可以在自定义适配器中修复它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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