Skip to content
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

chore: use testFixtures sourceset instead of depending on all the test classes #5975

Merged
merged 1 commit into from
Jun 8, 2023

Commits on Jun 8, 2023

  1. chore: use testFixtures sourceset instead of depending on all the tes…

    …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 committed Jun 8, 2023
    Configuration menu
    Copy the full SHA
    cabc3fb View commit details
    Browse the repository at this point in the history