julian
07/04/2020, 12:42 AMStringSpec
and I have a particularly long test name, and split it up on separate lines, like this:
"Given blah blah blah blah blah blah" +
" - When blah blah blah" +
" - Then blah blah blah" {
TODO()
}
Then the test name in the Intellij run window will be truncated to just - Then blah blah blah
.
To remedy, I tried putting the concatenation in parens:
("Given blah blah blah blah blah blah" +
" - When blah blah blah" +
" - Then blah blah blah") {
TODO()
}
This fixed the test name displayed in the run window.
But the plugin no longer recognized the test, I think. Because it removed the single green arrow gutter icon from that test in IntelliJ.
Is there a workaround that avoids both problems?
Thanks!sam
07/05/2020, 5:16 AMjulian
07/05/2020, 8:16 PMsam
07/05/2020, 8:34 PMjulian
07/05/2020, 8:35 PMsam
07/05/2020, 8:43 PMjulian
07/05/2020, 8:49 PM"Given blah blah blah blah blah blah" +
" - When blah blah blah" +
" - Then blah blah blah" {
TODO()
}
"Given blah blah blah blah blah blah"
" - When blah blah blah"
" - Then shake shake shake" {
TODO()
}
Note how second test name differs only in the third line/segment.
In the plugin it looks like this:
Given blah blah blah blah blah blah
- When blah blah blah
- Then blah blah blah
Given blah blah blah blah blah blah
- When blah blah blah
- Then shake shake shake
I imagine this would require framework to somehow know that the unique name of a test is a combination of all the names of its segments. It should not think, for example that two names map to the same test because the first segment of both are the same.