ernitingoel
ernitingoel

Reputation: 661

How to configure karate to stop execution when any scenario fails?

What's the best way to configure karate to stop execution when any of the scenario fails?

I saw karate.abort() however I think it will just abort that specific scenario.

I want to abort the whole feature file execution.

Upvotes: 3

Views: 2345

Answers (1)

Peter Thomas
Peter Thomas

Reputation: 58058

This is not supported as of now. This has never been requested until now and on the other hand people demand "soft assertions". Feel free to raise a feature request and explain why this is important.

Note that you have the option of running a chosen Scenario by name (IntelliJ) or tag from the IDE.

Upvotes: 1

Related Questions