Tarpaulin: Tarpaulin exit with code 0 when failed to run tests

Created on 8 Apr 2019  Â·  4Comments  Â·  Source: xd009642/tarpaulin

Looks like Tarpaulin does not return an exit code indicating failure even if there are indeed errors:

sh-4.2$ cargo tarpaulin -v
[INFO tarpaulin] Running Tarpaulin
[INFO tarpaulin] Building project
    Finished dev [unoptimized + debuginfo] target(s) in 0.31s
[DEBUG tarpaulin] Processing tikv
[INFO tarpaulin] Launching test
………………
[ERROR tarpaulin] Failed to get test coverage! Error: Failed to run tests! Error: A segfault occurred while executing tests
sh-4.2$ echo $?
0
enhancement

Most helpful comment

This is now fixed and in 0.8.5 :+1:

All 4 comments

The error should be a known issue https://github.com/xd009642/tarpaulin/issues/190 :)

Yeah exit codes are something where I'm going to have to go over them all and figure out what behaviour I want for each one!

@xd009642 ,
At least it should be not zero now(which is a main requested behaviour in CI services), and possible exit codes behaviour could be extended later :).

This is now fixed and in 0.8.5 :+1:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xd009642 picture xd009642  Â·  9Comments

hawkw picture hawkw  Â·  7Comments

Licenser picture Licenser  Â·  5Comments

Aeradriel picture Aeradriel  Â·  8Comments

Proksima picture Proksima  Â·  3Comments