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
Is there available a usage example with the Spock framework?
I managed to set up Spock to work with coverage extension, but it looks a bit awkward:
class MyTests extends Specification {
@Shared
@ClassRule
ProcessEngineRule processEngineClassRule = TestCoverageProcessEngineRuleBuilder.create().build()
@Rule
public ProcessEngineRule processEngineRule = processEngineClassRule
...
@Deployment(resources = "fciMessageImportProcess.bpmn")
void "some process test"() {
...
}
...
}
With this setup, I cannot use @Deployment at the class level (tests fail).
In Spock, a JUnit rule can either be annotated with ClassRule or with Rule, but not with both at the same time.
Tnx
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is there available a usage example with the Spock framework?
I managed to set up Spock to work with coverage extension, but it looks a bit awkward:
With this setup, I cannot use
@Deployment
at the class level (tests fail).In Spock, a JUnit rule can either be annotated with
ClassRule
or withRule
, but not with both at the same time.Tnx
Beta Was this translation helpful? Give feedback.
All reactions