-
Notifications
You must be signed in to change notification settings - Fork 5
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
testCompileOnly should extend compileOnly for whitebox test suites #51
Comments
Thanks for reporting and sorry for the late reply. This issue can be solved by adding this configuring:
Which I think the plugin should do automatically, if a test suite is javaModuleTesting.whitebox(). |
I can kind of see why you might not want |
I think the confusion is the "two ways" of whitebox testing I mentioned in #47
|
what is the difference if
|
That the That Gradle does not add this
If you do not use the plugin, then The plugin for blackbox testing adds a jar task that puts the test classes and resources into a jar if necessary and reconfigures the test classpath / modulepath, so that the test-jar is used instead of the separate directories. Imho it would be better to instead add But as long as you do not have resources or do not need to retrieve them during testing, there should not be any difference. One difference though is, that if you use the default |
whitebox won't compile if I don't set jspecify to
compileOnlyApi
regardless of whether I userequires static
orrequires static transient
, and whether or not I actually use it in my test module. Attached is a reproducer.reproducer.tar.gz
The text was updated successfully, but these errors were encountered: