How to Display jUnit Errors Via Ant

前端 未结 2 388
忘了有多久
忘了有多久 2021-01-21 06:48

I am trying to add an Ant script to my company\'s project to run the jUnit tests. Here is what I have:


    
              


        
2条回答
  •  逝去的感伤
    2021-01-21 07:36

    You can't print the full stack trace from the tests in the Ant output AFAIK; it's embedded in the JUnit report file. You can either browse that separately, or if you're using a continuous integration server such as Jenkins or CruiseControl to run your builds, you can set up a plugin that will link to the test reports.

提交回复
热议问题