Szuturon
Szuturon

Reputation: 971

Geb: Moving on from a failed test rather than stopping the run

I'm (learning how to) writing and running Geb tests in Intellij. How do I configure Geb so that it runs all my tests rather than stop at the first fail and leaving the rest not run?

Upvotes: 2

Views: 1299

Answers (2)

erdi
erdi

Reputation: 6954

When using Spock's @Stepwise all feature methods are run in the order of their declaration in the spec and if one feature method fails then all the following feature methods are being skipped.

Upvotes: 3

Jim Chertkov
Jim Chertkov

Reputation: 1229

I created a @StepThrough annotation by subclassing @Stepwise and taking out the line of code that fails the entire testsuite after a single failure. You can grab the code here

Upvotes: 1

Related Questions