Python Testing

From Code Self Study Wiki
Jump to: navigation, search

Python testing notes.

py.test

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

Mock

Nose

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

Behave

Lettuce

Additional Resources