how can i create a html report for the junit xml report manually?

后端 未结 2 1210
既然无缘
既然无缘 2020-12-19 10:55

I have run junit and it shows the results in Junit console, then i do a export of the result, it is saved as some test.xml. now i want to generate a html report out of it ho

2条回答
  •  情话喂你
    2020-12-19 11:33

    Not 100% sure what you're asking but heck here's my ant code for doing a JUnit batch test then a HTML report using the XML formatter...

       
        
          
          
        
        
          
            
          
          
        
      
      
        
        
      
    

    note that the @{test} is because its part of a macrodef within the build.xml file.

    From what you said in the question, its unsure if you're using the .

    Anyway hope that helps

    oh and dont mix your slashes ${reports}\html\" > ${reports}/html/"

提交回复
热议问题