Groovy incompatible type assignments warning disabled in IntelliJ IDEA for Spock Interaction Based Testing
Not long after I discovered IntelliJ IDEA groovy inspection issues in my last post regarding result data tables, I discovered interaction-based testing groovy inspection issues, too. This time, interaction expectations like this have inspection problems: 1 * mock.someMethod(argument) This time, I had to disabled the groovy "Incompatible type assignments" inspection because spock's syntax confused the IDE. Spock seems interesting from an expressive standpoint, but it comes at the cost of static inspections. Given groovy's history of loose typing and the like, I am not too surprised by this information. I am a huge fan of mockito historically. I am trying Spock out now, but I'm not sure I am a fan.