You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importspock.lang.*finalclassSpockTestsextendsSpecification {
@Unrollvoid'test #a equals #b'() {
expect:
a == b
where:
a | b
1 | 12 | a
}
}
The spock transform adds parameters "a" and "b" to the test method. This is throwing off the type inference engine and so occurrences of "a" and "b" are showing as unknown (underlined).
Global xforms disabled for:
- index
- find JUnit tests
- open in editor (aka become working copy)
- select in explorer (aka test for extract class refactor)
Global xforms enabled for:
- compile
- reconcile
- resolve source reference
- code minings (aka search)
Note: #812 is disabled until Spock xform is run as part of reconcile
Note: Scripts with @grab will now open in editor immediately and the
grabs are processed asynchronously as part of reconcile operation
Note: Global xforms that run during Conversion compiler phase are applied even if disabled by CompilerConfiguration setting
Consider the following:
The spock transform adds parameters "a" and "b" to the test method. This is throwing off the type inference engine and so occurrences of "a" and "b" are showing as unknown (underlined).
See also: https://stackoverflow.com/questions/54597908/spock-test-eclipse-doesnt-seem-to-recoganize-the-data-variables-in-where-claus
The text was updated successfully, but these errors were encountered: