[ 
https://issues.apache.org/jira/browse/SUREFIRE-2217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17856312#comment-17856312
 ] 

Brian Demers commented on SUREFIRE-2217:
----------------------------------------

I just ran into a similar issue:

Most of these test have a single test method, so seeing `Tests run: 0` stuck 
out.
{code:java}
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.133 s 
-- in dev.jprompts.prompts.impl.JLinePauseTest
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.134 s 
-- in dev.jprompts.prompts.impl.DisplayRadioTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.136 s 
-- in dev.jprompts.prompts.impl.DumbRadioTest
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.144 s 
-- in dev.jprompts.prompts.impl.DisplayCheckboxTest
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.144 s 
-- in dev.jprompts.prompts.impl.DumbCheckboxTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.142 s 
-- in dev.jprompts.prompts.impl.JLinePromptTest {code}

Looks like the same issue as [~losipiuk] posted, additional details:

Surefire: 3.3.0

 

JUnit: 5.10.2

Single fork, test concurrency configured via JUnit platform:

 
{code:java}
junit.jupiter.execution.parallel.enabled = true
junit.jupiter.execution.parallel.mode.default = concurrent
{code}
 

> Surefire wrongly reports number of Junit tests run for test classes with 
> common base class
> ------------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-2217
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-2217
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Lukasz Osipiuk
>            Priority: Minor
>
> Surefire wrongly reports number of Junit tests run for test classes with 
> common base class when subclasses are run concurrently.
> It looks like when first test class completes surefire reports the number of 
> tests which have been run which is sum of tests run so far from both 
> subclasses.
>  
> Observed in trinodb/trino. See this issue: 
> [https://github.com/trinodb/trino/issues/19908]
>  
> cc: [~findepi] [~martint] 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to