问题
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