问题描述
是否可以在Travis CI中访问和查看HTML报告以进行Maven Testng测试?
Is there a way to access and view html report in Travis CI for maven testng tests ?
此刻,Travis CI日志是我查看通过/失败/跳过等测试数量的唯一方法.
At this moment, Travis CI logs is the only way I see how many tests passed/failed/skipped etc.
类似这样的事情:测试运行:34,失败:0,错误:0,跳过:0,经过的时间:50.427秒
Something like this:Tests run: 34, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 50.427 sec
结果:
运行测试:34,失败:0,错误:0,跳过:0
Tests run: 34, Failures: 0, Errors: 0, Skipped: 0
但是,此目录中生成了surefire报告:
However there are surefire reports generated in this directory:
[INFO] Surefire报告目录:/home/travis/build/xxxx/yyyy/target/surefire-reports
[INFO] Surefire report directory: /home/travis/build/xxxx/yyyy/target/surefire-reports
我想访问surefire-reports/index.html文件并查看结果.
I want to access the surefire-reports/index.html file and view the results.
这可能吗,有人可以帮忙吗?
Is this possible,could someone help?
推荐答案
我也有同样的问题.不幸的是,Travis似乎不支持HTML报告.我尚未尝试过,但基于此功能请求<,以及其他问题,我们可以使用lynx -dump
呈现HTML文件并让Travis输出它.
I had the same question too. Unfortunately it looks like Travis does not support HTML reporting. I haven't tried it, but based on the workaround suggested by this feature request, and this other SO question, we could use lynx -dump
to render the HTML file and have Travis output it.
这篇关于有没有一种方法可以在Travis CI中访问和查看HTML报告以进行Maven测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!