Skip to content

Commit e22f4c5

Browse files
authored
Add extra Test tasks to check instead of test (#8651)
1 parent 8ee63d4 commit e22f4c5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

instrumentation/runtime-metrics/runtime-metrics-java17/library/build.gradle.kts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,16 @@ dependencies {
1010
implementation(project(":instrumentation:runtime-metrics:runtime-metrics-java8:library"))
1111
testImplementation("io.github.netmikey.logunit:logunit-jul:1.1.3")
1212
}
13+
1314
tasks.create("generateDocs", JavaExec::class) {
1415
group = "build"
1516
description = "Generate table for README.md"
1617
classpath = sourceSets.test.get().runtimeClasspath
1718
mainClass.set("io.opentelemetry.instrumentation.runtimemetrics.java17.GenerateDocs")
1819
systemProperties.set("jfr.readme.path", project.projectDir.toString() + "/README.md")
1920
}
20-
tasks {
2121

22+
tasks {
2223
val testG1 by registering(Test::class) {
2324
filter {
2425
includeTestsMatching("*G1GcMemoryMetricTest*")
@@ -49,6 +50,9 @@ tasks {
4950
excludeTestsMatching("*SerialGcMemoryMetricTest")
5051
excludeTestsMatching("*PsGcMemoryMetricTest")
5152
}
53+
}
54+
55+
check {
5256
dependsOn(testG1)
5357
dependsOn(testPS)
5458
dependsOn(testSerial)

0 commit comments

Comments
 (0)