marcl's avatar
marcl
Occasional Contributor
8 years ago
Status:
New Idea

[Groovy] Cancel / fail a whole TestSuite

Today when inside a groovy script you can cancel/fail the execution of the current TestCase, using the testRunner:

testRunner.fail("DON'T PANIC")

I would like to request a method allowing to do the same, but cancelling the whole TestSuite instead.

  • The reason is that I have some TestSuites with hundreds of TestCases, which all depend of some important preconditions (i.e. some services are available)
  • Checking those conditions can take quite some time, especially if calling those services result in a timeout
  • This means performing a check at the beginning of each test case is not acceptable, it would take too much time (I want my test projects to run as quickly as possible)
No CommentsBe the first to comment