Skip to content

Conversation

@vlsi
Copy link
Collaborator

@vlsi vlsi commented Jun 8, 2023

Motivation and Context

This change enables cleaner separation between "actual tests" and "support classes for the tests".

For instance, :src:core might provide dummy samplers like ThreadSleep for testing purposes.
ThreadSleep would depend on src/test/main (since it would extend AbstractSampler), and other modules (e.g. tests in :src:protocols:http) might need that ThreadSleep sampler.

It won't be practical to create core-testkit modules for every module, so we move those reusable test classes to testFixtures/... source set.

See https://docs.gradle.org/current/userguide/java_testing.html#sec:java_test_fixtures

@vlsi vlsi added the chore label Jun 8, 2023
@vlsi vlsi added this to the 5.6 milestone Jun 8, 2023
@vlsi vlsi force-pushed the testfixtures branch 2 times, most recently from 5a692dd to 15c8bc2 Compare June 8, 2023 10:13
…t classes

This change enables cleaner separation between "actual tests" and "support classes for the tests".

For instance, `:src:core` might provide dummy samplers like `ThreadSleep` for testing purposes.
`ThreadSleep` would depend on `src/test/main` (since it would `extend AbstractSampler`),
 and other modules (e.g. tests in `:src:protocols:http`) might need that `ThreadSleep` sampler.

It won't be practical to create `core-testkit` modules for every module,
so we move those reusable test classes to `testFixtures/...` source set.

See https://docs.gradle.org/current/userguide/java_testing.html#sec:java_test_fixtures
@vlsi vlsi force-pushed the testfixtures branch 3 times, most recently from eb60144 to cabc3fb Compare June 8, 2023 12:03
@vlsi vlsi merged commit cabc3fb into apache:master Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant