eclipse 生成 JUnit 测试报告

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/25112373/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 21:50:09  来源:igfitidea点击:

Generate JUnit Test report

eclipsejunit

提问by Manas Pratim Chamuah

Is it possible to have JUnit Test report data in html in eclipse(kepler), which show many test case and how many passed, what is the intent of test cases etc.

是否可以在eclipse(kepler)中以html形式显示JUnit测试报告数据,其中显示了许多测试用例以及通过了多少,测试用例的意图是什么等。

采纳答案by malatesh

Yes it can be done using Ant eclipse build file read more herethe Ant build file generated from eclipse it self.

是的,它可以使用 Ant eclipse 构建文件来完成,请在此处阅读更多内容从 eclipse 自身生成的 Ant 构建文件。

More References :

更多参考:

1)http://www.java2s.com/Code/Java/Ant/Junitreport.htm

1) http://www.java2s.com/Code/Java/Ant/Junitreport.htm

2)http://earlwillis.wordpress.com/2012/01/31/getting-started-with-junit-reports/

2) http://earlwillis.wordpress.com/2012/01/31/getting-started-with-junit-reports/

3)http://ant.apache.org/manual/Tasks/junitreport.html

3) http://ant.apache.org/manual/Tasks/junitreport.html

Hope that helps

希望有帮助