csaroff / coverage_status_code_test

Experiment with returning non-zero status codes after tests run with coverage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Coverage Status Code Tests

Let's try running some tests with coverage and storing the returned status code in a variable.

Once we're done generating coverage reports, we can re-emit the test result status code at the end of the script.

To try it out, run:

bash coverage_testing.sh

and then check the resulting status code.

echo $?

About

Experiment with returning non-zero status codes after tests run with coverage


Languages

Language:Shell 66.6%Language:Python 33.4%