开发者

how to get testng reports on executing junit test

I want to execute test script with JUnit or any other test but want the reports in TestNG开发者_如何学C reports format:

Is there any way to invoke org.testng.reporters methods in JUnit framework to obtain TestNG style reports (xml reports, emailable-reports.html) on executing the code as JUnit test?


I don't know if you can invoke part of testng from JUnit.

What you can do is execute your JUnit test directly (without any changes) from TestNG:
see section "JUnit tests" from the TestNG manual

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜