Max
03/18/2025, 7:37 PMclass SampleKonsistTest : FreeSpec({
"android activity class name ends with 'Activity'" {
Konsist
.scopeFromProject()
.classes()
.withAllParentsOf(ComponentActivity::class)
.assertTrue { it.name.endsWith("Activity") }
}
})
and dependencies:
testImplementation("com.lemonappdev:konsist:0.17.3")
testImplementation("io.kotest:kotest-runner-junit5:5.9.1")
But when I'm trying to run this test I'm getting the error:
Execution failed for task ':app:testDebugUnitTest'.
> No tests found for given includes: [com.example.polygone.SampleKonsistTest](--tests filter)
Could somebody help me to understand, what I'm doing wrong?