Hi everyone, we're starting with konsist at work a...
# konsist
r
Hi everyone, we're starting with konsist at work and I'm struggling while trying to suppress parts of the code that are inside dynamic tests. According to the docs it should be
Copy code
@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 thread
Let's say we have the following konsist test
Copy code
@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
Copy code
@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?