0

We are using geb framework for our testing with IntelliJ IDE. many times we need to run only few test cases in a a spec. For that either we are running the whole spec or one by one. Is there any way to run the specified test cases?

K V
  • 95
  • 9
  • I am not familiar with the geb framework, but if you are running the tests via maven then you can use maven profiles and annotations to run subsets of the tests. – vikingsteve Jun 16 '14 at 08:15

1 Answers1

0

If you're using Spock then you can mark all the test cases you want to run with @IgnoreRest and then run the whole spec in IntelliJ - only the marked test cases will be run.

If you want to build suites of tests you can use either @IgnoreIf/@Require annotations or Spock config file. Both these techniques are described in a blog post I wrote some time ago.

erdi
  • 6,944
  • 18
  • 28
  • 1
    thats a good way to run few test cases but we have around 600 test cases and if I want to run 300 test cases, it will be a time consuming effort. Also what If want to run specific test cases between differetn specs. Is there a way? – K V Jun 17 '14 at 05:25