For a customer we need to generate detailed test reports for integration tests which not only show, that everything is green, but also what the test did. My colleagues and I
As mentioned above maven is definitely the way to go.. It makes life really easy. You can create an maven project pretty easy using m2eclipse plugin. Once that is done. Just run these commands:
cd
mvn site:site
This command will create the style sheets for you. In the same directory run:
mvn surefire-report:report
This will run the test cases and convert the output to html. You can find the output in the 'target/site/surefire-report.html'.
Below is the snippet. As you can see all the test cases (written in JUnit) are shown in the html. Other meta info like total no of test cases ran, how many successful, time taken etc., is also there.
Since I cannot upload image I cant show you the output.
You can go a step further and can give the exact version of the plugin to use like
mvn org.apache.maven.plugins:maven-site-plugin:3.0:site org.apache.maven.plugins:maven-surefire-report-plugin:2.10:report