Is there something like 'autotest' for Python unittests?

后端 未结 11 1379
有刺的猬
有刺的猬 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 11:52

    Maybe buildbot would be useful http://buildbot.net/trac

    0 讨论(0)
  • 2020-12-23 11:53

    autonose created by gfxmonk:

    Autonose is an autotest-like tool for python, using the excellent nosetest library.

    autotest tracks filesystem changes and automatically re-run any changed tests or dependencies whenever a file is added, removed or updated. A file counts as changed if it has iself been modified, or if any file it imports has changed.

    ...

    Autonose currently has a native GUI for OSX and GTK. If neither of those are available to you, you can instead run the console version (with the --console option).

    0 讨论(0)
  • 2020-12-23 11:53

    Check out pytddmon. Here is a video demonstration of how to use it: http://pytddmon.org/?page_id=33

    0 讨论(0)
  • 2020-12-23 12:00

    Guard is an excellent tool that monitors for file changes and triggers tasks automatically. It's written in Ruby, but it can be used as a standalone tool for any task like this. There's a guard-nosetests plugin to run Python tests via nose.

    Guard supports cross-platform notifications (Linux, OSX, Windows), including Growl, as well as many other great features. One of my can't-live-without dev tools.

    0 讨论(0)
  • 2020-12-23 12:01

    I just found this: http://www.metareal.org/p/modipyd/

    I'm currently using thumb.py, but as my current project transitions from a small project to a medium sized one, I've been looking for something that can do a bit more thorough dependency analysis, and with a few tweaks, I got modipyd up and running pretty quickly.

    0 讨论(0)
  • 2020-12-23 12:02

    Django's development server has a file change monitor that watches for modifications and automatically reloads itself. You could re-use this code to launch unit tests on file modification.

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