Make internalClusterTest run after unit tests (#57016)
This commit adds an ordering rule to ensure unit tests are run first when running a higher level task like check.
This commit is contained in:
parent
33ca5ba44b
commit
94062df77c
|
@ -152,6 +152,8 @@ public abstract class GradleUtils {
|
|||
task.setGroup(JavaBasePlugin.VERIFICATION_GROUP);
|
||||
task.setTestClassesDirs(testSourceSet.getOutput().getClassesDirs());
|
||||
task.setClasspath(testSourceSet.getRuntimeClasspath());
|
||||
// make the new test run after unit tests
|
||||
task.mustRunAfter(project.getTasks().named("test"));
|
||||
});
|
||||
|
||||
Configuration testCompileConfig = project.getConfigurations().getByName(testSourceSet.getCompileClasspathConfigurationName());
|
||||
|
|
Loading…
Reference in New Issue