[Fixed]-How to use –failfast in django test command line?

27👍

Add the –failfast flag if you WANT all the other tests to stop, as documented here in the official django documentation:

python manage.py test --failfast

But it sounds like you want it to do the opposite of what failfast does, which is to keep going, and that is the default behavior when you run django tests without flags:

python manage.py test

If that is not your default, it may be that your project has already overridden the default behavior in some settings or TestRunner class.

👤LisaD

Leave a comment