kotest icon indicating copy to clipboard operation
kotest copied to clipboard

Wrong tests results tree

Open olegivo opened this issue 5 months ago • 1 comments

Kotest 6.0.0.M3

class Test : FreeSpec({
    "root" - {
        (1..3).forEach { i ->
            "$i" - {
                (1..3).forEach { j ->
                    "$i $j" {

                    }
                }
            }
        }
    }
})

Expected result:

root
  1
    1 1
    1 2
    1 3
  2
    2 1
    2 2
    2 3
  3
    3 1
    3 2
    3 3

Actual result:

Image

olegivo avatar Jun 11 '25 13:06 olegivo

5.9.1 produces

Image

olegivo avatar Jun 11 '25 14:06 olegivo

Is this using gradle or running using the play button in the editor ?

sksamuel avatar Jun 28 '25 19:06 sksamuel

This is fixed in master, so will go out with the RC candidate.

sksamuel avatar Jul 04 '25 11:07 sksamuel