spock icon indicating copy to clipboard operation
spock copied to clipboard

Query:How to Define TestSuite in spock

Open sadasivaiahgoli opened this issue 7 years ago • 1 comments

I am using spock in my grails project. I wan to run the test classes in a sequence order. When I run all the test cases in a package it runs randomly. I am using linux os. How can we run the test classes in a sequence order. Or How to define test suit in spock .

sadasivaiahgoli avatar Oct 26 '18 10:10 sadasivaiahgoli

Spock is realized by a custom JUnit runner on the base class Specification. So I guess you can simply do it the normal JUnit way. Have one class annotated with @RunWith(Suite) and the @SuiteClasses annotation

Vampire avatar Sep 27 '19 07:09 Vampire