IntroductionJtreport born with the idea to simplify and expand the possibilities of automatic test reports(for now just to Junit test). Using Jtreport can introduce your own comments and description of classes and individual tests via annotations, put the information provided by the tests in your own Velocity template, or create your own printer to print the desired reports with information gathered by Jt-report. The printer supported now are: PDF, ODT, ODS, CSV, HTML, XHTML, XML, PNG and JRXML. It offers integration with the Maven surefire plugin, through an appropriate Junit listener. Below is a brief example, for complete example and more configuration look at Wiki page Examples:
@TestClassReport(description = "Put here the description for this test Class.") public class SimpleExamplesTest { @Test @TestSingleReport(description = "Put here the description for this test...", expectations = "Put here the expectations test of the test...") public void simpleTest1() { } @Ignore("Put here why this test is skipped") @Test @TestSingleReport(description = "Put here the description for this test...", expectations = "Put here the expectations test of the test...") public void simpleTest2() { } ... } |