Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create an HTML report for JUnit 5 tests?

Is there already a possibility to generate an HTML report when JUnit tests were started via Gradle? Any hint or comment is appreciated.

like image 914
Juergen Zimmermann Avatar asked Sep 12 '16 07:09

Juergen Zimmermann


People also ask

How do you create a test report in HTML?

To generate a HTML report for a Selenium test, we have to install a plugin with the command: pip install pytest-html. To generate the report, we have to move from the current directory to the directory of the Pytest file that we want to execute. Then run the command: pytest --html=report.


1 Answers

Adding below line to my java command created TEST-junit-jupiter.xml in my target/test-result folder. This xml file has all info about number of testcases run, number of tests passed/failed etc

 --reports-dir target/test-result
like image 171
Anantha Avatar answered Sep 18 '22 00:09

Anantha