I have a django test suite which is running on jenkins with the following build:
virtualenv -p /usr/bin/python3.5 etl_api_virtualenv
cd etl_api_virtualenv
source bin/activate
python --version
cd $WORKSPACE/leg_apps
ls
pip install -r requirements-dev.pip
./api/test/run_api_tests.sh $WEB_ENV
This is working, but when some of the unit tests fail, the job/build still is marked as a success. I can't figure out how to make the job indicator turn red and mark as a failure if the tests don't all pass. I'm not even sure what to Google to try to figure this out, so please forgive the apparent "lack of effort"... it's not the case. I'm just dead-ended at the start.
EDIT:
I think the problem might be that I don't know how to make run_api_tests.sh
return an appropriate code based on whether or not the tests fail