Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
2.19.1
-
None
-
None
Description
Hello,
Using surefire and Junit, the class names are not displayed in the output log when the tests are run in parallel with parameterized tests.
According to this small project, in parallel mode:
------------------------------------------------------- T E S T S ------------------------------------------------------- Running [p2] com.appnexus.viewability.core.surefireJunitTests.ATest.methodA1[p2] - p2 - sleeptime = 1 => start com.appnexus.viewability.core.surefireJunitTests.ATest.methodA1[p2] - p2 - sleeptime = 1 => stop com.appnexus.viewability.core.surefireJunitTests.ATest.methodA1[p1] - p1 - sleeptime = 2 => start com.appnexus.viewability.core.surefireJunitTests.ATest.methodA1[p1] - p1 - sleeptime = 2 => stop com.appnexus.viewability.core.surefireJunitTests.ATest.methodA1[p0] - p0 - sleeptime = 5 => start com.appnexus.viewability.core.surefireJunitTests.ATest.methodA1[p0] - p0 - sleeptime = 5 => stop Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.006 sec - in [p2] Running [p2] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec - in [p2] Results : Tests run: 12, Failures: 0, Errors: 0, Skipped: 0 [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 7.799 s [INFO] Finished at: 2016-07-27T15:03:37+02:00 [INFO] Final Memory: 18M/213M [INFO] ------------------------------------------------------------------------
Without parallel mode (we have the 'Running #classname#' in the output):
------------------------------------------------------- T E S T S ------------------------------------------------------- Running com.appnexus.viewability.core.surefireJunitTests.ATest com.appnexus.viewability.core.surefireJunitTests.ATest.methodA1[p0] - p0 - sleeptime = 5 => start com.appnexus.viewability.core.surefireJunitTests.ATest.methodA1[p0] - p0 - sleeptime = 5 => stop com.appnexus.viewability.core.surefireJunitTests.ATest.methodA1[p1] - p1 - sleeptime = 2 => start com.appnexus.viewability.core.surefireJunitTests.ATest.methodA1[p1] - p1 - sleeptime = 2 => stop com.appnexus.viewability.core.surefireJunitTests.ATest.methodA1[p2] - p2 - sleeptime = 1 => start com.appnexus.viewability.core.surefireJunitTests.ATest.methodA1[p2] - p2 - sleeptime = 1 => stop Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.085 sec - in com.appnexus.viewability.core.surefireJunitTests.ATest Running com.appnexus.viewability.core.surefireJunitTests.BTest Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in com.appnexus.viewability.core.surefireJunitTests.BTest Results : Tests run: 12, Failures: 0, Errors: 0, Skipped: 0
It would be great to have the classname displayed when running tests in parallel.
Attachments
Issue Links
- is duplicated by
-
SUREFIRE-1264 Some tests can be lost when running in parallel with parameterized tests
- Closed
-
SUREFIRE-1279 Report file names for parameterized, parallelized test suite don't include test suite class
- Closed