Hello, I am trying to create dynamic tests using J...
# konsist
v
Hello, I am trying to create dynamic tests using JUnit 5 but I get an error saying that "Test events were not received". This is the Konsist code
Copy code
@TestFactory
    fun `classes start with Note`() = Konsist
            .scopeFromPackage("..data")
            .classes()
            .stream()
            .flatMap { 
                Stream.of(
                    dynamicTest("${it} should start with the word Note"){
                        it.assertTrue { it.name.startsWith("Note") }
                    }
                )
            }
If someone was able to use dynamic tests kindly help me
i
I believe this is about JUnit setup rather than Konsist. Perhaps you forgot to set
useJUnitPlatform()
in build gradle. Check the starter projects. They have been recently updated on
developement
branch. Samples contain both normal and dynamic tests: https://github.com/LemonAppDev/konsist/tree/develop/samples/starter-projects