[英]How to manually generate JUnit test reports
Couldn't come up with a better name. 无法拿出更好的名字。 I'm doing something wrong here, please point in the right direction. 我在这里做错了,请指出正确的方向。
I have a small java app. 我有一个小型的Java应用程序。 We use Jenkins for CI, and (AFAICT) maven-surefire to generate some nice test reports that Jenkins understands. 我们将Jenkins用于CI,并使用(AFAICT)maven-surefire生成Jenkins理解的一些不错的测试报告。 Now, I needed some sanity/acceptance test for my app. 现在,我需要为我的应用程序进行一些健全性/验收测试。 My approach was: 我的方法是:
So far so good - my Jenkins build has a very simple script that does the copying and then runs the jar. 到目前为止,一切都很好-我的Jenkins版本有一个非常简单的脚本,可以执行复制然后运行jar。 If I do it manually, I can see the results on the console. 如果手动执行,则可以在控制台上看到结果。
The problem I now face is generating a test report for Jenkins? 我现在面临的问题是为詹金斯生成测试报告? maven is not installed on the test VM, nor is ant. Maven未安装在测试VM上,Ant也未安装。 Any ideas how I could do this without too much trouble? 有什么想法我可以做到这一点而没有太多麻烦吗?
thanks a lot 非常感谢
The easiest way I can think of is just to install ANT on the test VM. 我能想到的最简单的方法就是在测试VM上安装ANT。 These are the steps: 这些步骤是:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.