1 2 3 4 5 6 7 8 9 10 11 12 13
#!/usr/bin/env bash # final result # this allows all tests to run even if some fail in-between EXITCODE=0 # run unit tests cargo test || EXITCODE=1 # run integration tests bash tests/run $@ || EXITCODE=1 exit $EXITCODE