[Fixed]-Django how do I get a command to execute when all tests pass?

1👍

When you run ./manage.py test, the exit status of the command is zero (success) if all tests have passed and non-zero (failure) otherwise. In Unix/Linux, you can do this:

./manage.py test  &&  echo "All tests have passed"

For Windows, see another stackoverflow question.

Leave a comment