简体   繁体   English

成功生成JUnit测试跟踪

[英]Generate Trace of JUnit test on success

I have JUnit tests that work without errors. 我有可以正常工作的JUnit测试。 And what I would like to do is to generate a trace file of these tests for example havinge execution time of each test class, list of methods tested ant other. 我想做的是生成这些测试的跟踪文件,例如,每个测试类的执行时间,所测试方法的清单以及其他方法。

Thank you. 谢谢。

Your build tool should do this for you. 您的构建工具应该为您执行此操作。 For instance if you are using maven have a look at http://maven.apache.org/surefire/maven-surefire-report-plugin/ , for ant you could use https://ant.apache.org/manual/Tasks/junit.html and https://ant.apache.org/manual/Tasks/junitreport.html . 例如,如果您正在使用maven,请访问http://maven.apache.org/surefire/maven-surefire-report-plugin/ ,对于ant来说,您可以使用https://ant.apache.org/manual/Tasks /junit.htmlhttps://ant.apache.org/manual/Tasks/junitreport.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM