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

Support test-resources on specific Test tasks #957

Open
mcwhitak opened this issue Mar 2, 2024 · 1 comment
Open

Support test-resources on specific Test tasks #957

mcwhitak opened this issue Mar 2, 2024 · 1 comment

Comments

@mcwhitak
Copy link

mcwhitak commented Mar 2, 2024

Feature description

Currently the test-resources plugin configures all Test type tasks in a project to include test-resources support.

With newer versions of Gradle (7.3+?) the JVM Test Suite plugin (included by default with the Java plugin now) encourages users to segment their testing/runner/scope needs into different sourceSets and task executions.

This allows for easily running quicker unit tests separately from integration tests as well as isolating heavier framework dependencies.

For projects leveraging this structure, they may not need the test-resources to run during the default test task and instead only need them when running their configured test-suite (integrationTest for example).


Support configuring specific test tasks that should have test resources enabled. Keep the default behavior of adding it to all test tasks for backwards compatibility.

EDIT: This may also have a usage for specifying (separately) a list of Exec tasks to cover as there are use cases (running Gradle exec tasks as a form of scheduled task execution) where the test-resources server may not be desired there as well.

@mcwhitak mcwhitak closed this as not planned Won't fix, can't repro, duplicate, stale Mar 2, 2024
@mcwhitak mcwhitak reopened this Mar 2, 2024
@mcwhitak
Copy link
Author

mcwhitak commented Mar 2, 2024

Had closed this as it seems antithetical to a lot of what Micronaut generally mentions around separating unit and functional tests, however the feature would still be greatly appreciated so hoping the team will chime in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant