You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Priyank Shah (JIRA)" <ji...@apache.org> on 2019/08/07 08:57:00 UTC

[jira] [Updated] (SUREFIRE-1687) Incorrect test count displayed with Maven Surefire

     [ https://issues.apache.org/jira/browse/SUREFIRE-1687?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Priyank Shah updated SUREFIRE-1687:
-----------------------------------
    Description: 
Steps to reproduce
 - Run code from [https://github.com/priyankshah217/junit5sample]
 - It has running strategy concurrent (method and class level)

 
{code:java}
junit.jupiter.execution.parallel.mode.default = concurrent
 junit.jupiter.execution.parallel.mode.classes.default = concurrent{code}
 - Run test using
{code:java}
mvn clean test{code}

*Actual Output*

 
{code:java}
[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.026 s - in SampleTest2
 [INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.04 s - in SampleTest{code}
[https://gist.github.com/priyankshah217/c8860393e82eb18172e6bd2afda5957e#file-junit5executionlog]

*Expected Output*


{code:java}
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.026 s - in SampleTest2
 [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.04 s - in SampleTest{code}
 

*Context*
 - Used versions (Jupiter/Vintage/Platform): junit-jupiter-engine:5.5.1,junit-platform-runner:1.5.1
 - Build Tool/IDE: mvn:3.6.1

 

  was:
## Steps to reproduce

- Run code from https://github.com/priyankshah217/junit5sample
- It has running strategy concurrent (method and class level)

``` 
junit.jupiter.execution.parallel.mode.default = concurrent
junit.jupiter.execution.parallel.mode.classes.default = concurrent
```

- Run test using `mvn clean test`

**Actual Output**

```
[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.026 s - in SampleTest2
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.04 s - in SampleTest
```

https://gist.github.com/priyankshah217/c8860393e82eb18172e6bd2afda5957e#file-junit5executionlog

**Expected Output**
```
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.026 s - in SampleTest2
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.04 s - in SampleTest
```

## Context

- Used versions (Jupiter/Vintage/Platform): junit-jupiter-engine:5.5.1,junit-platform-runner:1.5.1
 - Build Tool/IDE: mvn:3.6.1

 


> Incorrect test count displayed with Maven Surefire
> --------------------------------------------------
>
>                 Key: SUREFIRE-1687
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1687
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Priyank Shah
>            Priority: Major
>
> Steps to reproduce
>  - Run code from [https://github.com/priyankshah217/junit5sample]
>  - It has running strategy concurrent (method and class level)
>  
> {code:java}
> junit.jupiter.execution.parallel.mode.default = concurrent
>  junit.jupiter.execution.parallel.mode.classes.default = concurrent{code}
>  - Run test using
> {code:java}
> mvn clean test{code}
> *Actual Output*
>  
> {code:java}
> [INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.026 s - in SampleTest2
>  [INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.04 s - in SampleTest{code}
> [https://gist.github.com/priyankshah217/c8860393e82eb18172e6bd2afda5957e#file-junit5executionlog]
> *Expected Output*
> {code:java}
> [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.026 s - in SampleTest2
>  [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.04 s - in SampleTest{code}
>  
> *Context*
>  - Used versions (Jupiter/Vintage/Platform): junit-jupiter-engine:5.5.1,junit-platform-runner:1.5.1
>  - Build Tool/IDE: mvn:3.6.1
>  



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)