forked from gradle/gradle-java-modules
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot run tests that use Hamcrest #36
Comments
The stacktrace:
|
Hm... even using only JUnit, I get an error... are you sure this plugin supports running JUnit tests? I can only run JUnit tests when I add this to the build file: test {
doFirst {
jvmArgs += [
'--add-exports', "simple.main/example=junit",
]
}
} Interestingly, I was able to run my original Hamcrest test with adding this: test {
doFirst {
jvmArgs += [
'--add-exports', "simple.main/example=junit",
'--add-reads', "simple.main=hamcrest.core",
]
}
} Maybe you could generate these |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I wrote this Java test:
As you probably know,
JUnit
depends on hamcrest (partial output ofgradle depend
):So this should work, I think.
The text was updated successfully, but these errors were encountered: