usebruno / bruno

Opensource IDE For Exploring and Testing Api's (lightweight alternative to postman/insomnia)
https://www.usebruno.com/
MIT License
27.6k stars 1.27k forks source link

Setting to skip test if assert fails #3434

Open koliyo opened 2 weeks ago

koliyo commented 2 weeks ago

I have checked the following:

Describe the feature you want to add

We use assert statements in combination with test script. But we really do not want to run the additional test script block if assertions fail. Eg getting the wrong status code we do not want to further inspect the result body.

It would be helpful if there was a setting to skip test scripts if assert block fails.

Mockups or Images of the feature

Some flag in bruno.json, eg abortTestOnAssertFail

thiagomini commented 2 weeks ago

That's certainly useful!