Gradle Java Test Fixtures Plugin
Gradle Plugin which automatically create a testFixtures
source set, in which you can write your test fixtures.
Test fixtures are commonly used to setup the code under test, or provide utilities aimed at facilitating the tests of a component. Java projects can enable test fixtures support by applying the
java-test-fixtures
plugin, in addition to the java or java-library plugins.
This will automatically create a testFixtures source set, in which you can write your test fixtures. Test fixtures are configured so that:
- they can see the main source set classes
test sources can see the test fixtures classes