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:
Ryan Ernst 2020-05-20 19:20:23 -07:00 committed by Ryan Ernst
parent 33ca5ba44b
commit 94062df77c
No known key found for this signature in database
GPG Key ID: 5F7EA39E15F54DCE
1 changed files with 2 additions and 0 deletions

View File

@ -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());