Python Testing

From Code Self Study Wiki
Jump to: navigation, search

Python testing notes.

py.test[edit]

Check out this article for some tips. Basically, you can do pip install pytest pytest-xdist and then have it watch files for changes with py.test -f. There is also a way to show test coverage.

PyUnit[edit]

Mock[edit]

Nose[edit]

If you use --pdb as an argument, it drops into the debugger when needed.

Behave[edit]

Lettuce[edit]

Additional Resources[edit]