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
精彩评论