Crazyjavahacking
Crazyjavahacking

Reputation: 9697

Is it possible to define test dependencies in Spock?

I am trying to achieve similar functionality to the following TestNG code:

@Test
public void method1() {}

@Test(dependsOnMethods = { "method1" })
public void method2() {}

I am unable to find similar concept in Spock. Is that possible?

Upvotes: 3

Views: 1030

Answers (1)

Opal
Opal

Reputation: 84786

I don't know such feature in spock, however Stepwise might be what you're looking for.

Upvotes: 5

Related Questions