UnitTests

From GNU MediaGoblin Wiki
Revision as of 14:19, 1 August 2011 by Willkg (talk | contribs) (added docs on how to run the tests)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Unit tests

FIXME - i think there's some information in chris' brain dumps page that should get ported here.


Running the unit tests

To run the unit tests, do:

   ./runtests.sh

To run a specific test, do:

   ./runtests.sh <TEST>

For example:

   ./runtests.sh mediagoblin.tests.test_auth:test_authentication_views

runtests.sh does some minor setup and calls nosetests. If you pass in -h, you'll get the nosetests help which shows you options for other things you can do with the unit test system.