[Test] Migrate Parcelize tests to new test infrastructure
This commit is contained in:
committed by
TeamCityServer
parent
a68c4ec7be
commit
df47bffabb
@@ -24,6 +24,8 @@ dependencies {
|
||||
compileOnly(intellijCoreDep()) { includeJars("intellij-core") }
|
||||
compileOnly(intellijDep()) { includeJars("asm-all", rootProject = rootProject) }
|
||||
|
||||
testApiJUnit5()
|
||||
|
||||
testApi(project(":compiler:util"))
|
||||
testApi(project(":compiler:backend"))
|
||||
testApi(project(":compiler:ir.backend.common"))
|
||||
@@ -31,8 +33,12 @@ dependencies {
|
||||
testApi(project(":compiler:cli"))
|
||||
testApi(project(":plugins:parcelize:parcelize-runtime"))
|
||||
testApi(project(":kotlin-android-extensions-runtime"))
|
||||
testApi(projectTests(":compiler:tests-common"))
|
||||
testApi(project(":kotlin-test:kotlin-test-jvm"))
|
||||
|
||||
testApi(projectTests(":compiler:tests-common-new"))
|
||||
testApi(projectTests(":compiler:test-infrastructure"))
|
||||
testApi(projectTests(":compiler:test-infrastructure-utils"))
|
||||
|
||||
testApi(commonDep("junit:junit"))
|
||||
|
||||
testRuntimeOnly(intellijPluginDep("junit"))
|
||||
@@ -69,7 +75,8 @@ sourcesJar()
|
||||
|
||||
testsJar()
|
||||
|
||||
projectTest {
|
||||
projectTest(jUnit5Enabled = true) {
|
||||
useJUnitPlatform()
|
||||
dependsOn(parcelizeRuntimeForTests)
|
||||
dependsOn(":dist")
|
||||
workingDir = rootDir
|
||||
@@ -84,4 +91,9 @@ projectTest {
|
||||
systemProperty("parcelizeRuntime.classpath", parcelizeRuntimeForTestsProvider.get())
|
||||
systemProperty("robolectric.classpath", robolectricClasspathProvider.get())
|
||||
}
|
||||
doLast {
|
||||
println(filter)
|
||||
println(filter.excludePatterns)
|
||||
println(filter.includePatterns)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user