Details
-
Type:
Bug
-
Status:
Reopened
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.4.2
-
Fix Version/s: None
-
Component/s: Maven Surefire Plugin, process forking
-
Labels:None
-
Complexity:Intermediate
-
Number of attachments :
Description
When forkmode is always/prtest (probably that could be true for the last test and forkmode once) when one test hangs and timeout occurs, est suite execution stops and report file for the offending test not generated. That could mislead somebody to think all tests passed if all tests before the offending one passed.
AFAICT that should be synchronized between one of these:
1. CommandLineUtils.executeCommandLine()
2. SurefireBooter.fork()
3. SurefireBooter.run()
4. SurefirePlugin.execute()
Probably fork must detect a timeout. Then the timeout be gracefully handled by generating a report file for the test. Then continue execution of remaining tests.
Issue Links
- relates to
-
SUREFIRE-705
Setting both "forkedProcessTimeoutInSeconds" and "parallel" fails with an exception
-
-
PLXUTILS-67
CommandLineUtils.executeCommandLine() to throw TimeoutException on timeout
-
PLXUTILS-67is a feature request for the cli tools to throw TimeoutException in case of timeout.