https://kotlinlang.org logo
#kotest
Title
# kotest
s

Sourabh Rawat

03/09/2022, 4:09 AM
Hi, I am having issues with generated test names for nested tests in FreeSpec. I have test structure like
Copy code
"container 1" - {
  "container 2" - {
    "actual test" {
     }
   }
}
In the generated JUnit XML report I have
container 2 -- actual test
, missing the containers two step above the test node. My Kotest config has
Copy code
JunitXmlReporter(
                useTestPathAsName = true
            )
Any help will be appreciated!
s

sam

03/10/2022, 12:17 PM
might be a bug that it misses top level names. What happens if you have more nesting ?
s

Sourabh Rawat

03/10/2022, 12:36 PM
Only leaf and one above are taken into consideration.
5 Views