JUnit test report enrichment with JavaDoc

后端 未结 6 1522
日久生厌
日久生厌 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:35

    I have created a program using testNG and iText which outputs the test results in a nice pdf report. You can put a description of your test in the @Test tag, and that can be included in the .pdf report also. It provides the run times of the tests, and for the entire suite. It is currently being used to test webapps with selenium, but that part could be ignored. It also allows you to run multiple test suites in one run, and if tests fail, it allows you to re-run only those tests without having to re-run the entire suite, and those results will be appended to the original results PDF. See below the image for a link to the source if you are interested. I wouldn't mind this becoming an opensource project as I have a good start on it, though I'm not sure how to go about doing that. Here's a screenshot enter image description here

    So I figured out how to create a project on sourceforge. Here's the link sourceforge link

提交回复
热议问题