File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,8 @@ tasks.withType(Test::class.java).configureEach {
9797 timeout.set(Duration .of(20 , ChronoUnit .MINUTES ))
9898}
9999
100+ // Register a task "allTests" that depends on all non-latest and non-traceAgentTest Test tasks.
101+ // This is used when we only want to run the 'main' test sets.
100102tasks.register(" allTests" ) {
101103 dependsOn(providers.provider {
102104 tasks.withType<Test >().filter { testTask ->
@@ -105,6 +107,8 @@ tasks.register("allTests") {
105107 })
106108}
107109
110+ // Register a task "allLatestDepTests" that depends on all Test tasks whose names include 'latest'.
111+ // This is used when we want to run tests against the latest dependency versions.
108112tasks.register(" allLatestDepTests" ) {
109113 dependsOn(providers.provider {
110114 tasks.withType<Test >().filter { testTask ->
@@ -113,6 +117,8 @@ tasks.register("allLatestDepTests") {
113117 })
114118}
115119
120+ // Make the 'check' task depends on all Test tasks in the project.
121+ // This means that when running the 'check' task, all Test tasks will run as well.
116122tasks.named(" check" ) {
117123 dependsOn(tasks.withType<Test >())
118124}
You can’t perform that action at this time.
0 commit comments