成功生成 JUnit 测试跟踪
Generate Trace of JUnit test on success
我的 JUnit 测试没有错误。我想做的是生成这些测试的跟踪文件,例如每个测试的执行时间class,测试方法列表和其他。
谢谢。
您的构建工具应该可以为您完成这项工作。例如,如果您使用的是 Maven,请查看 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.
我的 JUnit 测试没有错误。我想做的是生成这些测试的跟踪文件,例如每个测试的执行时间class,测试方法列表和其他。
谢谢。
您的构建工具应该可以为您完成这项工作。例如,如果您使用的是 Maven,请查看 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.