Skip to content

Commit afa8ed9

Browse files
committed
Comment tasks
1 parent d85b522 commit afa8ed9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

buildSrc/src/main/kotlin/datadog.configure-tests.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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.
100102
tasks.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.
108112
tasks.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.
116122
tasks.named("check") {
117123
dependsOn(tasks.withType<Test>())
118124
}

0 commit comments

Comments
 (0)