Rafa Gómez
06/27/2024, 1:06 PM@Suppres("konsist.name of test exactly")
But whenever I try to use this with dynamic tests it simply won't work, the suppress part of the doc does not mention working with dynamic tests, is this feature still not implemented? I'll add an example of our use case on the threadRafa Gómez
06/27/2024, 1:08 PM@TestFactory
fun `every command or query handler must have it's function annotated`(): Stream<DynamicTest> =
CLASSES_FROM_CONTEXTS_SCOPE
.filter { it.isCQRSClass() }
.stream()
.flatMap { applicationService ->
Stream.of(
dynamicTest("${applicationService.name}'s must have only one function named handle") {
// do something
}
)
}
Now if i annotate a class with
@Suppress("konsist.ReviewUserPermissionCommandHandler's must have only one function named handle")
class ReviewUserPermissionCommandHandler
This should work right? But it doesn't. I also tried with the test name of the actual test instead of the dynamic one but it's still not working. I'm using version 0.15.1. Am I missing something?