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?
Travis CI is a hosted, distributed continuous integration service used to build and test projects hosted at GitHub. Travis CI automatically detects when a commit has been made and pushed to a GitHub repository that is using Travis CI, and each time this happens, it will try to build the project and run tests.
travis. yml , which is a YAML format text file, to the root directory of the repository. This file specifies the programming language used, the desired building and testing environment (including dependencies which must be installed before the software can be built and tested), and various other parameters.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With