Oskar Woźniak
Oskar Woźniak

Reputation: 715

Intellij doesn't recognize Groovy tests properly

I have test written in spock. Each time when I'm running tests IntelliJ saying that the configuration is wrong - but if I press apply and etc I'm able to run these tests - What I can do, to don't see these messages?

  1. Example of test for which I'm getting this error message:

enter image description here

  1. The configuration which opens after an attempt of running the test:

enter image description here

  1. Last error message:

enter image description here

Any ideas how to get rid of these?

For now I have created issue.

Upvotes: 1

Views: 789

Answers (1)

CrazyCoder
CrazyCoder

Reputation: 402493

IntelliJ IDEA JUnit configuration stores method name and parameters signature in a single string instance.

While this works for Java (it doesn't allow parentheses in methods names), this fails for other JVM languages.

This issue is not related to Spock, it's reproducible for arbitrary JUnit test class written in Groovy.

Follow YouTrack ticket for updates.

Upvotes: 1

Related Questions