[
https://issues.apache.org/jira/browse/SUREFIRE-1305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15682426#comment-15682426
]
Tibor Digana commented on SUREFIRE-1305:
----------------------------------------
[~piotr.turski]
I guess the custom runner does not satisfy the interface of {{Description}}. We
have to extract method and class from it which is important to run method
and/or class in parallel.
Try to attach Surefire source, run it in debug mode and debug classes
{{ConcurrentRunListener}} and {{JUnitCoreRunListener}}. There is no {{TestSet}}
for {{Description}}. Is the runner mutating the description?
You should debug the method {{fillTestCountMap}} in class
{{JUnitCoreRunListener}}. Either the class name does not come to the map
{{classMethodCounts}} or the description of class was mutated before
{{ConcurrentRunListener#testStarting()}}.
The JUnit description must be parsed successfully in
{{JUnit4RunListener#testStarted( Description description )}}.
> surefire fails on parallel tests when newline character is in test description
> ------------------------------------------------------------------------------
>
> Key: SUREFIRE-1305
> URL: https://issues.apache.org/jira/browse/SUREFIRE-1305
> Project: Maven Surefire
> Issue Type: Bug
> Components: Junit 4.7+ (parallel) support
> Affects Versions: 2.19.1
> Reporter: Piotr Turski
> Assignee: Tibor Digana
>
> zohhak runner may create test description with newline character in it. it
> runs without any problem with surefire and non-parallel build and with
> parallel build when there is no newline char in the description. furthermore
> it runs fine with plain junit in parallel mode
> * original issue was reported here:
> https://github.com/piotrturski/zohhak/issues/14
> * project that reproduces the issue:
> https://github.com/christophpickl/zohhak_parallel_bug
> * working parallel junit tests without surefire:
> https://github.com/piotrturski/zohhak/commit/806aafc8e09fd843753d2940991f3ca0edd5120d
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)