Test post should _not_ be executed when test fails

Hey there,

we are using CodeCov to log coverage reports. If a test fails, that’s usually pretty bad and we want to

  1. stop the execution of further scripts (that saves time after all)
  2. don’t process post tasks (like sending out our reports to CodeCov)

I was pretty surprised when I saw this behavior, because on Unix it’s the default behavior to exit the execution if an error code is sent :wink:

https://circleci.com/gh/dlang/dmd/329

1 Like

It appears that they intentionally chose to set it up that way because it “allows our test output to tell you about all the tests that fail, not just the first error.”

https://circleci.com/docs/configuration/#test

thanks a lot for your answer - I am not sure what to say. I can understand their reasoning, but it’s still hard to deal with :confused: