Is there a way to access and view html report in Travis CI for maven tests?

别说谁变了你拦得住时间么 提交于 2019-12-05 16:38:26

问题


Is there a way to access and view html report in Travis CI for maven testng tests ?

At this moment, Travis CI logs is the only way I see how many tests passed/failed/skipped etc.

Something like this: Tests run: 34, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 50.427 sec

Results :

Tests run: 34, Failures: 0, Errors: 0, Skipped: 0

However there are surefire reports generated in this directory:

[INFO] Surefire report directory: /home/travis/build/xxxx/yyyy/target/surefire-reports

I want to access the surefire-reports/index.html file and view the results.

Is this possible,could someone help?


回答1:


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.



来源:https://stackoverflow.com/questions/35783728/is-there-a-way-to-access-and-view-html-report-in-travis-ci-for-maven-tests

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!