maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "nkeywal (JIRA)" <j...@codehaus.org>
Subject [jira] (SUREFIRE-798) JUnit47 provider could print immediatly the test class name, as JUnit4, instead of waiting for the test to finish.
Date Sun, 01 Jan 2012 16:59:02 GMT

    [ https://jira.codehaus.org/browse/SUREFIRE-798?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=287216#comment-287216
] 

nkeywal commented on SUREFIRE-798:
----------------------------------

As a side effect as well, note that when a forked process timeouts with JUnit47, there is
no entry in the console at all. The final status says 'failure or timeout', but there is no
direct way to find out which one of the test timeouted.
                
> JUnit47 provider could print immediatly the test class name, as JUnit4, instead of waiting
for the test to finish.
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-798
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-798
>             Project: Maven Surefire
>          Issue Type: Improvement
>          Components: Junit 4.7+ (parallel) support
>    Affects Versions: 2.10
>         Environment: all
>            Reporter: nkeywal
>            Priority: Minor
>
> With a test that takes some time, for example
> {noformat}
> public class Test0 {
>   @Test
>   public void testT0() throws Exception {
>     Thread.sleep(6000);
>   }
> }
> {noformat}
> With JUnit4, we have first
> {noformat}Running Test0{noformat}
> Then, 6 seconds later
> {noformat}Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.002 sec{noformat}
> With JUnit47, we wait for 6 seconds, then the two lines appear simultaneously.
> The former behavior is better, because it allows to kill the test if we know that this
test should not take so long. It also gives the feeling that you know what's going on :-).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message