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

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

    I would recommend setting up django-nose and sniffer. It's quite easy to setup and works great. Something along the lines of this scent.py was the only customization I needed. Then you can just run sniffer -x myapp.tests.

    Nose comes with some other goodies that make tests a bit nicer to work with as well.

提交回复
热议问题