UnitTests: Difference between revisions

From GNU MediaGoblin Wiki
Jump to navigation Jump to search
(added docs on how to run the tests)
 
Line 1: Line 1:
= Unit tests =
= Unit tests =


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

In the meantime, if you're interested in helping with unit tests, come see us in #mediagoblin on freenode.net or email press@gnu.org





Revision as of 00:22, 6 September 2011

Unit tests

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

In the meantime, if you're interested in helping with unit tests, come see us in #mediagoblin on freenode.net or email press@gnu.org


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.