junit hudson
场景:
hudson--junit测试报告
hudson--junit测试报告
如果你的项目在构建时进行了单元测试,可以在hudson中直接查看测试报告。
在job设置中的Post-build Actions找到 Publish JUnit test result report,勾选上。
Test report XMLs:指定junit测试结果目录,就是那一堆Test*.xml所在的目录,该目录必须是相对于JOB_WORKSPACE的。注意:如果是第一次构建,hudsno会提示你路径不存在,原因就是测试结果还没有创建,如果是这样,可以不用管它,保存即可。
ok,配置完成。
执行构建。在job信息页中会看到,增加了如下内容:
Latest Test Result (4 failures / ±0)
同时还会看到Test Result Trend的一个图表。
点击图表或Latest Test Result连接,就可以看到测试结果报告了。
1 楼
paulwong
2012-02-08
运行JUNIT的时候报这个错了,怎么解决?
Could not create task or type of type: junit.
Ant could not find the task or a class this task relies upon.
Could not create task or type of type: junit.
Ant could not find the task or a class this task relies upon.