JUnit test report enrichment with JavaDoc

后端 未结 6 1519
日久生厌
日久生厌 2020-12-07 18:56

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

6条回答
  •  误落风尘
    2020-12-07 19:29

    Have you looked at Maven Sure-fire reports?

    You can generate a HTML report from your JUnit Tests.

    http://maven.apache.org/plugins/maven-surefire-report-plugin/

    I'm not sure how customizable it is though. But it's a good starting point.

    I also know that TestNG ( alternative to JUnit ) has some report generating capabilities. http://testng.org/doc/documentation-main.html#logging-junitreports

    I would also recommend log4j http://logging.apache.org/log4j/1.2/manual.html

提交回复
热议问题