Skip to content

Commit

Permalink
Move tests from junit-jupiter-engine to jupiter-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marcphilipp committed Aug 10, 2024
1 parent 675d9cb commit 10dd400
Show file tree
Hide file tree
Showing 218 changed files with 33 additions and 21 deletions.
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ dependencies {
jacocoAggregation(it)
}
jacocoAggregation(projects.documentation)
jacocoAggregation(projects.jupiterTests)
jacocoAggregation(projects.platformTests)
}

Expand Down
21 changes: 0 additions & 21 deletions junit-jupiter-engine/junit-jupiter-engine.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
import org.gradle.api.tasks.PathSensitivity.RELATIVE

plugins {
id("junitbuild.kotlin-library-conventions")
id("junitbuild.testing-conventions")
id("junitbuild.code-generator")
groovy
`java-test-fixtures`
}

Expand All @@ -17,26 +12,10 @@ dependencies {

compileOnlyApi(libs.apiguardian)

testImplementation(projects.junitPlatformLauncher)
testImplementation(projects.junitPlatformSuiteEngine)
testImplementation(projects.junitPlatformTestkit)
testImplementation(testFixtures(projects.junitPlatformCommons))
testImplementation(kotlin("stdlib"))
testImplementation(libs.jimfs)
testImplementation(libs.junit4)
testImplementation(libs.kotlinx.coroutines)
testImplementation(libs.groovy4)
testImplementation(libs.memoryfilesystem)
testImplementation(testFixtures(projects.junitJupiterApi))

osgiVerification(projects.junitPlatformLauncher)
}

tasks {
test {
inputs.dir("src/test/resources").withPathSensitivity(RELATIVE)
systemProperty("developmentVersion", version)
}
jar {
bundle {
val platformVersion: String by rootProject.extra
Expand Down
31 changes: 31 additions & 0 deletions jupiter-tests/jupiter-tests.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import org.gradle.api.tasks.PathSensitivity.RELATIVE

plugins {
id("junitbuild.kotlin-library-conventions")
id("junitbuild.testing-conventions")
id("junitbuild.code-generator")
groovy
}

dependencies {
testImplementation(projects.junitJupiter)
testImplementation(projects.junitPlatformLauncher)
testImplementation(projects.junitPlatformSuiteEngine)
testImplementation(projects.junitPlatformTestkit)
testImplementation(testFixtures(projects.junitPlatformCommons))
testImplementation(kotlin("stdlib"))
testImplementation(libs.jimfs)
testImplementation(libs.junit4)
testImplementation(libs.kotlinx.coroutines)
testImplementation(libs.groovy4)
testImplementation(libs.memoryfilesystem)
testImplementation(testFixtures(projects.junitJupiterApi))
testImplementation(testFixtures(projects.junitJupiterEngine))
}

tasks {
test {
inputs.dir("src/test/resources").withPathSensitivity(RELATIVE)
systemProperty("developmentVersion", version)
}
}
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ include("junit-platform-suite-commons")
include("junit-platform-suite-engine")
include("junit-platform-testkit")
include("junit-vintage-engine")
include("jupiter-tests")
include("platform-tests")
include("platform-tooling-support-tests")
include("junit-bom")
Expand Down

0 comments on commit 10dd400

Please sign in to comment.