Can't get test fixtures to work in gradle

813 views Asked by At

I've been using these answers to try to get a test class to be visible from subproject ":A:B" to ":A:C":

(https://discuss.gradle.org/t/gradle-test-classes-needed-in-another-sub-project/13365/2)

(Multi-project test dependencies with gradle)

using plugin

Using any of these methods still gives me a java.lang.NoClassDefFoundError on Project B. I'm using gradle 7.2.

Is there another way to expose test fixtures in gradle?

1

There are 1 answers

0
Martin Zeitler On

You'd have to add a third module, which then can be referenced as testImplementation project().