Skip to content

Commit

Permalink
add Kotest Datatest dependency, and remove unused test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
aSemy committed Feb 20, 2023
1 parent 3324560 commit 4126aaa
Showing 1 changed file with 2 additions and 26 deletions.
28 changes: 2 additions & 26 deletions modules/dokkatoo-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ dependencies {
testFixturesApi("io.kotest:kotest-runner-junit5")
testFixturesApi("io.kotest:kotest-assertions-core")
testFixturesApi("io.kotest:kotest-assertions-json")
testFixturesApi("io.kotest:kotest-framework-datatest")

// kotlinDokkaSource(projects.externals)

Expand Down Expand Up @@ -103,7 +104,6 @@ testing.suites {
implementation(project.dependencies.gradleTestKit())

implementation("org.jetbrains.kotlin:kotlin-test:1.7.20")
//implementation(project.dependencies.kotlin("test")) // helper function doesn't work?

implementation(project.dependencies.testFixtures(project))

Expand Down Expand Up @@ -151,31 +151,7 @@ testing.suites {
}
}


/** Integration tests suite */
val testIntegration by registering(JvmTestSuite::class) {
testType.set(TestSuiteType.INTEGRATION_TEST)

targets.all {
testTask.configure {
shouldRunAfter(test, testFunctional)

// dependsOn(project.configurations.kotlinDokkaSource)

// inputs.property("dokkaSourceDir",
// project.configurations.kotlinDokkaSource.map { dokkaSrcConf ->
// val files = dokkaSrcConf.incoming.artifactView { lenient(true) }.files
// files.singleOrNull()?.absolutePath
// ?: error("could not get Dokka source code directory from kotlinDokkaSource configuration. Got ${files.count()} files: $files")
// }
// )
//
// systemProperty("dokkaSourceDir", inputs.properties["dokkaSourceDir"]!!)
}
}
}

tasks.check { dependsOn(testFunctional, testIntegration) }
tasks.check { dependsOn(testFunctional) }
}


Expand Down

0 comments on commit 4126aaa

Please sign in to comment.