molotov icon indicating copy to clipboard operation
molotov copied to clipboard

Could molotov exit with a non-zero value in case of a failure

Open julienw opened this issue 3 years ago • 3 comments

Hey,

I'm still trying to reuse my molotov scripts to do an integration test -- as a mean to both test my sever and my molotov script.

But molotov always exits with a zero success value, even in case of a failure.

Is it easy to change?

Thanks!

julienw avatar Apr 27 '21 09:04 julienw

Hi, did you take a look into the --fail CLI flag? I think that's pretty much it https://molotov.readthedocs.io/en/stable/cli/

n1ngu avatar Aug 23 '21 15:08 n1ngu

Ah that's interesting, I guess I missed it indeed... Thanks for the pointer!

julienw avatar Aug 24 '21 08:08 julienw

I guess we should also exits with 1 when --fail is not used and at least one test fails

tarekziade avatar Aug 24 '21 09:08 tarekziade