spek icon indicating copy to clipboard operation
spek copied to clipboard

[IDEA] same text in `describe` as in `it` results in <no name>

Open robstoll opened this issue 6 years ago • 2 comments

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

robstoll avatar Jul 07 '19 08:07 robstoll

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:

image

Note how "closes the internal file" gets truncated to "s the internal file".

It would be great if this could be fixed!

DanielSWolf avatar Nov 01 '19 19:11 DanielSWolf

Ohh interesting, I'll add the fix to the next release.

raniejade avatar Nov 08 '19 23:11 raniejade