Tibor17 edited a comment on pull request #293:
URL: https://github.com/apache/maven-surefire/pull/293#issuecomment-633546412
@rfscholte
In my local test the JUnit4 is on modulepath. JUnit 4.13 is an automatic
module.
I've observed `java.lang.NoClassDefFoundError:
org/junit/runner/notification/RunNotifier` without `ALL-MODULE-PATH`. Another
options `--add-opens junit/org.junit=ALL-UNNAMED --add-opens
junit/org.junit.runner.notification=ALL-UNNAMED` did not help.
This is my descriptor in `src/main/java`:
```
module main
{
exports main;
}
```
and this is the test descriptor:
```
open module test
{
requires main;
requires junit;
exports test to junit;
}
```
This means we are missing the direction where classpath (surefire-api) is
calling the module `junit`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]