spek icon indicating copy to clipboard operation
spek copied to clipboard

IntelliJ plugin does not recognize scope descriptions with interpolation

Open DanielSWolf opened this issue 6 years ago • 2 comments

If have a simple parameterized test using a for loop around the it. The IntelliJ IDEA plugin does not seem to recognize this as a test and doesn't display the green "Run" icon next to it:

image

Am I doing something wrong? I noticed that there was a PR about table driven tests some years ago (#146), but I can't find any documentation on it.

DanielSWolf avatar Oct 16 '19 13:10 DanielSWolf

Any interpolation on scope descriptions is not recognize by the IDE plugin atm, need to make some changes to the core before the plugin can support this.

Am I doing something wrong? I noticed that there was a PR about table driven tests some years ago (#146), but I can't find any documentation on it.

It was dropped, I have not decided yet which way to go for table driven tests. But for now, the way you are doing it is correct (listOf(...).forEach { .. })

raniejade avatar Oct 16 '19 23:10 raniejade

Any interpolation on scope descriptions is not recognize by the IDE plugin atm, need to make some changes to the core before the plugin can support this.

That would be great! I'm using parameterized tests fairly often, and being able to debug individual tests makes life much easier.

DanielSWolf avatar Oct 17 '19 06:10 DanielSWolf