apache / apache/maven-surefire
[SUREFIRE-2217] Surefire wrongly reports number of Junit tests run for test classes with common base class
- Dominant language
- Java
- Stars
- 461
- Forks
- 588
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 19
Description
**[Lukasz Osipiuk](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=losipiuk)** opened **[SUREFIRE-2217](https://issues.apache.org/jira/browse/SUREFIRE-2217?redirect=false)** and commented
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: [Piotr Findeisen](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=findepi) [martint](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=martint)
---
1 votes, 3 watchers
Contributor guide
Research direction
Start by reproducing the concurrent execution of test classes that share a common base class, using the behavior described in SUREFIRE-2217 and the linked trinodb/trino issue. Trace when Surefire reports completed tests and verify that each class's count and the overall count remain correct when subclasses finish concurrently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100