Determine order of execution of Spock tests

后端 未结 1 432
渐次进展
渐次进展 2020-12-16 13:46

Is there a way to set the order in which tests are executed within an Spock Specification?

For example:

class MySpec extends IntegrationSpec {
    de         


        
相关标签:
1条回答
  • 2020-12-16 14:17

    You can use @Stepwise annotation on a spec and spock will run each of the test definitions of the Spec in the order they are specified. Look at this example.

    0 讨论(0)
提交回复
热议问题