spek
spek copied to clipboard
[IDEA] same text in `describe` as in `it` results in <no name>
Nothing which bothers me, as I usually don't have the same text. Following an example:
object A: Spek({
describe("asdf"){
it("asdf"){ // shown as <no name>
throw AssertionError("oh no... ")
}
it("asdf 3"){ // shown as `3` instead of `asdf 3`
throw AssertionError("oh no... ")
}
}
})
I guess this is an intellij plugin problem
I'm having the same problem here. It doesn't just happen if describe and it have the same text; it's enough if one is a prefix of the other.
Take this real example:
describe("close") {
it("closes the internal file") {
...
}
}
This is the result in the unit test window:

Note how "closes the internal file" gets truncated to "s the internal file".
It would be great if this could be fixed!
Ohh interesting, I'll add the fix to the next release.