-
Notifications
You must be signed in to change notification settings - Fork 561
Description
Anders Hammar opened SUREFIRE-1266 and commented
Test framework: junit 4.8+
I have a scenario where we want to configure the groups parameter in a parent so that it doesn't have to be specified in all modules. However, not all modules have test classes and therefore no dependency on junit is specified in those projects. What then happens is that m-surefire-p fails with:
groups/excludedGroups require TestNG or JUnit48+ on project test classpath
This can be worked around by specifying skipTests on those projects, but it's a bit cumbersome.
It would be nice if surefire could detect that there are no test classes (src/test/main is empty) and therefore the project should just be ignored. However, I guess there could be test classes in a dependency so that might not be as easy.
Possibly the solution could be to not fail the surefire execution if groups/excludedGroups is set but TestNG or JUnit 4.8+ is not on the classpath, but issue a warning message and ignoring it?
Affects: 2.19.1
Remote Links:
0 votes, 6 watchers