[ https://issues.apache.org/jira/browse/SUREFIRE-681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15803280#comment-15803280 ]
Tibor Digana commented on SUREFIRE-681: --------------------------------------- We can extend the XSD schema with two optional XML attributes as you have proposed in the XML test result. Can you open PR and implement it? I am going to push several commits and then cut a release version so I do not guarantee that your PR would be able to merge to master if you was faster to commit than me. You can simplify naming *testCaseStartTime *to *startTime *because it's obvious that we are in test-case element. Same with end time. I am not sure if we are writing time format already in the xml report file, but if we do so then we should keep it here the same format as well. > Add timestamp when each test is run in the generated report > ----------------------------------------------------------- > > Key: SUREFIRE-681 > URL: https://issues.apache.org/jira/browse/SUREFIRE-681 > Project: Maven Surefire > Issue Type: Improvement > Components: Maven Failsafe Plugin, Maven Surefire Plugin > Reporter: Viggo Navarsete > > We run integration tests using maven-surefire-plugin by filtering on the > names (they end with *TestIntegration). These tests access a JBoss server, > and leave log entires in the server log. When a test fail, it would be great > to have a timestamp on each test in the test report from surefire so that it > can be matched against what is happening in the server log. This is > especially true when you have a lot of integration tests running and you > can't directly spot the server log entries related to the failing test. By > adding a timestamp to the tests it would make it MUCH easier to figure out > the server log dependent calls. > Current output: > {noformat] > ------------------------------------------------------------------------------- > Test set: com.tracetracker.gqi3.QueryRestTestIntegration > ------------------------------------------------------------------------------- > Tests run: 17, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 7.546 sec > <<< FAILURE! > testSimpleEventQueryRecordTime(com.tracetracker.gqi3.QueryRestTestIntegration) > Time elapsed: 0.031 sec <<< FAILURE! > junit.framework.AssertionFailedError: List of recordTime should not be empty > at junit.framework.Assert.fail(Assert.java:47) > at junit.framework.Assert.assertTrue(Assert.java:20) > at > com.tracetracker.gqi3.QueryRestTestIntegration.testSimpleEventQueryRecordTime(QueryRestTestIntegration.java:283) > {noformat} > Each failing test should have the timestamp added to the start of the line. -- This message was sent by Atlassian JIRA (v6.3.4#6332)