Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 204
Eajaz Avatar asked Mar 03 '16 21:03

Eajaz


People also ask

What is .travis file?

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.

What is the use of Travis Yml?

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.


1 Answers

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.

like image 136
HaC Avatar answered Sep 20 '22 06:09

HaC