apache / apache/maven-surefire
[SUREFIRE-1527] Surefire does not discover junit5 test case when testng is in the classpath
- Dominant language
- Java
- Stars
- 461
- Forks
- 588
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 19
Description
**[Dan Tran](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=dantran)** opened **[SUREFIRE-1527](https://issues.apache.org/jira/browse/SUREFIRE-1527?redirect=false)** and commented
My maven module uses junit5 but also has testng in its test classpath and my surefire does not specify any testng.xml files
Looks like surefire only look for testng test cases
---
**Affects:** 2.22.0
**Issue Links:**
- [SUREFIRE-1963](https://issues.apache.org/jira/browse/SUREFIRE-1963) Detecting multiple test-frameworks
- [SUREFIRE-1963](https://issues.apache.org/jira/browse/SUREFIRE-1963) Detecting multiple test-frameworks
1 votes, 5 watchers
Contributor guide
Research direction
Start with the reported Maven module configuration: JUnit 5 is used while TestNG is also on the test classpath and no testng.xml is specified. Review the related SUREFIRE-1963 issue about detecting multiple test frameworks, then reproduce the discovery behavior. Done means JUnit 5 tests are discovered and executed without requiring a TestNG suite file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system, testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100