Is there something like 'autotest' for Python unittests?

后端 未结 11 1432
有刺的猬
有刺的猬 2020-12-23 11:28

Basically, growl notifications (or other callbacks) when tests break or pass. Does anything like this exist?

If not, it should be pretty easy to wri

11条回答
  •  死守一世寂寞
    2020-12-23 12:16

    You can use nodemon for the task, by watching .py files and execute manage.py test. The command will be: nodemon --ext py --exec "python manage.py test".

    nodemon is an npm package however, I assume you have node installed.

提交回复
热议问题