~statik/terminator/add-test-goo

Viewing all changes in revision 799.

  • Committer: Elliot Murphy
  • Date: 2009-12-11 21:06:17 UTC
  • Revision ID: elliot@elliotmurphy.com-20091211210617-p9q6eycyq9d4laur
This is a basic example of how to set up a unit testing framework.
It shows both standard unit tests and doctests.
Also shown is skipping tests so you can have tests which only run
in certain environments be skipped rather than failing.
Extra fancy results on the terminal for optimum programmer motivation.
It does not show how to integrate test with setup.py, or how to split
tests into parallel suites for blazing speed.

This is based on using trial as the testrunner, and some convenience
functions from python-testtools that are forward-compatible with python2.7

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: