David
02/21/2024, 3:02 PMKonsist.scopeFromTest()
.functions()
.withAnnotationOf(Test::class)
however this seems to filter out my tests. I then did some debugging and inspected one of my test functions and I see the following:
The test has only one annotation, and the name
is "Test" which is what I would expect (test are annotated with @Test
from junit5, but when looking at the fullyQualifiedName
it is kotlinx.coroutines.test.UnconfinedTestDispatcher
which the Test class was extended with from a TestCoroutineRule
not the org.junit.jupiter.api.Test
as I would expect. All other properties e.g text
, location
points towards the actual annotation. Any ideas how I get the "real" annotation or why I'm getting the wrong fullyQualifiedName
?David
02/21/2024, 3:32 PMkotlinx.coroutines.test.UnconfinedTestDispatcher
seems to come from an annotation on the class ExtendWith
David
02/22/2024, 9:53 AMDavid
02/22/2024, 9:53 AMDavid
02/22/2024, 9:54 AMDavid
02/22/2024, 9:54 AMDavid
02/22/2024, 10:03 AMorg.junit.jupiter.api.Test
David
02/22/2024, 10:23 AMDavid
02/22/2024, 11:00 AM