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 3ecc4e9538
commit 569f3dbe0a

View file

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