Skip to content

Commit

Permalink
Make internalClusterTest run after unit tests (#57016)
Browse files Browse the repository at this point in the history
This commit adds an ordering rule to ensure unit tests are run first
when running a higher level task like check.
  • Loading branch information
rjernst committed May 21, 2020
1 parent 1283065 commit 961e5d6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ public static TaskProvider<?> addTestSourceSet(Project project, String sourceSet
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());
Expand Down

0 comments on commit 961e5d6

Please sign in to comment.