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
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论