You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When developing custom testing strategies, the test task becomes a legacy task from Gradle java plugin. The test suite does not reference that task hence rendering it completely useless. Instead, we should recycle the task into a lifecycle task. To do so, we should remove all its sources so it's treated as a NO-SOURCE task and add a dependency on all of the test suite's test tasks.
The text was updated successfully, but these errors were encountered:
I'm still not set if we would want to introduce lifecycle tasks for all test suites when multiple testing strategies are available. The reason being if the testing strategy composes both OS families and Gradle versions, we may want to have a lifecycle for each Gradle version that selects the current OS. However, if we only have Gradle version as testing strategies, we may want to have a single lifecycle task that executes all test tasks. Yet, however, we would most likely only run a single Gradle version locally and split the Gradle version coverage on CI based on PR, branches, etc.
Because of all those unknown, I feel the lifecycle task should be rolled out by the user based on their own requirements. The test task is special as it's always available and doesn't bring anything once multiple testing strategies are available. We should in fact just remove the task but it's not recommended to do such a thing (as well as some plugins may assume the task exists).
We need to be careful here :-)... We have to make sure the test task doesn't end up being reused. For example, if a testing strategy name is an empty string the test task would end up reusing the test task. We also have to be careful that each generated test tasks are distinct. See #76
When developing custom testing strategies, the
test
task becomes a legacy task from Gradlejava
plugin. The test suite does not reference that task hence rendering it completely useless. Instead, we should recycle the task into a lifecycle task. To do so, we should remove all its sources so it's treated as aNO-SOURCE
task and add a dependency on all of the test suite's test tasks.The text was updated successfully, but these errors were encountered: