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

后端 未结 14 1816
有刺的猬
有刺的猬 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:26

    https://pycrunch.com/

    One of key features - run only impacted tests on file changes. Available as plugin for PyCharm

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题