[
https://jira.codehaus.org/browse/SUREFIRE-791?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kristian Rosenvold closed SUREFIRE-791.
---------------------------------------
Resolution: Fixed
Fix Version/s: 2.11
Assignee: Kristian Rosenvold
Fixed in r1202059
> JUnit47 provider reports incorrect elapsed time on test failure.
> ----------------------------------------------------------------
>
> Key: SUREFIRE-791
> URL: https://jira.codehaus.org/browse/SUREFIRE-791
> Project: Maven Surefire
> Issue Type: Bug
> Components: Junit 4.7+ (parallel) support
> Affects Versions: 2.11
> Environment: all
> Reporter: nkeywal
> Assignee: Kristian Rosenvold
> Fix For: 2.11
>
>
> A test like this one:
> {noformat}
> public class Test0 {
> @Test
> public void testT0() throws Exception {
> Assert.assertTrue(false);
> }
> }
> {noformat}
> will report this with JUnit47:
> {noformat}
> Running Test0
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1,414,930.38
> sec <<< FAILURE!
> {noformat}
> This fix is in TestMethod#testFailure, adding "setEndTime();". It becomes
> {noformat}
> public void testFailure( ReportEntry failure )
> {
> this.testFailure = failure;
> setEndTime();
> }
> {noformat}
> I don't think there is any side effect.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira