Exclude screenshot test classes from Classes name containing @Test must end with 'Test'

This commit is contained in:
Benoit Marty
2024-05-30 11:19:33 +02:00
parent 6a901f1d7b
commit 319562e358

View File

@@ -31,6 +31,7 @@ class KonsistTestTest {
Konsist
.scopeFromTest()
.classes()
.withoutName("S", "T")
.withFunction { it.hasAnnotationOf(Test::class) }
.assertTrue { it.name.endsWith("Test") }
}