How to automatically run tests when there's any change in my project (Django)?

后端 未结 14 1953
有刺的猬
有刺的猬 2020-12-23 19:45

At the moment I am running python manage.py test every once in a while after I make significant changes in my django project. Is it possible to run those tests

14条回答
  •  渐次进展
    2020-12-23 20:27

    py.test answer (which also works for nose):

    pip install pytest-xdist
    py.test -f # will watch all subfolders for changes, and rerun the tests
    

    Since py.test understands nose, this works for nose too.

提交回复
热议问题