mirror of
https://github.com/gradle/actions.git
synced 2025-04-16 15:59:18 +08:00
Update DSL samples to use test suites
This commit is contained in:
parent
acd2925667
commit
a581639303
@ -6,8 +6,12 @@ repositories {
|
|||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
testing {
|
||||||
testImplementation('junit:junit:4.13.2')
|
suites {
|
||||||
|
test {
|
||||||
|
useJUnit()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.named("test").configure {
|
tasks.named("test").configure {
|
||||||
|
@ -9,12 +9,14 @@ repositories {
|
|||||||
dependencies {
|
dependencies {
|
||||||
api("org.apache.commons:commons-math3:3.6.1")
|
api("org.apache.commons:commons-math3:3.6.1")
|
||||||
implementation("com.google.guava:guava:33.4.5-jre")
|
implementation("com.google.guava:guava:33.4.5-jre")
|
||||||
|
|
||||||
testImplementation("org.junit.jupiter:junit-jupiter:5.12.1")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.test {
|
testing {
|
||||||
useJUnitPlatform()
|
suites {
|
||||||
|
val test by getting(JvmTestSuite::class) {
|
||||||
|
useJUnitJupiter()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.named("test").configure {
|
tasks.named("test").configure {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user