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 authored May 21, 2020
1 parent c98d548 commit 21f18e0
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 21f18e0

Please sign in to comment.