diff options
Diffstat (limited to 'integration-tests/gradle/projects/it-basic')
-rw-r--r-- | integration-tests/gradle/projects/it-basic/build.gradle.kts | 7 | ||||
-rw-r--r-- | integration-tests/gradle/projects/it-basic/src/test/kotlin/it/basic/TestClass.kt | 17 |
2 files changed, 24 insertions, 0 deletions
diff --git a/integration-tests/gradle/projects/it-basic/build.gradle.kts b/integration-tests/gradle/projects/it-basic/build.gradle.kts index 45454e29..1840ba94 100644 --- a/integration-tests/gradle/projects/it-basic/build.gradle.kts +++ b/integration-tests/gradle/projects/it-basic/build.gradle.kts @@ -9,6 +9,7 @@ apply(from = "../template.root.gradle.kts") dependencies { implementation(kotlin("stdlib")) + testImplementation(kotlin("test-junit")) } tasks.withType<DokkaTask> { @@ -21,5 +22,11 @@ tasks.withType<DokkaTask> { suppress.set(true) } } + + register("myTest") { + kotlinSourceSet(kotlin.sourceSets["test"]) + } } } + +buildDir.resolve("") diff --git a/integration-tests/gradle/projects/it-basic/src/test/kotlin/it/basic/TestClass.kt b/integration-tests/gradle/projects/it-basic/src/test/kotlin/it/basic/TestClass.kt new file mode 100644 index 00000000..3584bdef --- /dev/null +++ b/integration-tests/gradle/projects/it-basic/src/test/kotlin/it/basic/TestClass.kt @@ -0,0 +1,17 @@ +package it.basic + +import kotlin.test.Test +import kotlin.test.assertTrue + +annotation class OurAnnotation + +class TestClass { + /** + * Asserts something. [PublicClass] + */ + @Test + @OurAnnotation + fun test() { + assertTrue(1 == 1) + } +} |