简体   繁体   English

如何在python文件更改时重新运行“ tox”?

[英]How do you rerun “tox” on python file changes?

I have a tox configuration that runs all my tests, pep8 checks, and coverage checks. 我有一个运行所有测试,pep8检查和覆盖率检查的tox配置。 I run tox manually pretty much every time I save changes to my code. 每次将更改保存到代码中时,我几乎都会手动运行tox。 Tox runs the tests and coverage reports via "nosetests." Tox通过“ nosetests”运行测试和覆盖率报告。

How do I make the re-running of tox happen automatically when changes are saved to python files anywhere within the directory structure beneath my tox.ini file? 将更改保存到tox.ini文件下目录结构内任何位置的python文件中时,如何使tox自动重新运行?

我将尝试这样的“ tdaemon”:

$ tdaemon.py --test-program=tox

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM