django-nose

  249 downloads
1.1 BSD License    
  not rated
Django test runner using nose

description

download

specifications

changelog

django-nose is a Django test runner that uses nose.

Usage

See ./manage.py help test for all the options nose provides, and look to the nose docs for more help with nose.

Customization

Always Passing The Same Options

To always set the same command line options you can use a nose.cfg or setup.cfg (as usual) or you can specify them in settings.py like this:

NOSE_ARGS = ['--failed', '--stop']

Using Custom Plugins

If you need to make custom plugins, you can define each plugin class somewhere within your app and load them from settings.py like this:

NOSE_PLUGINS = [
 'yourapp.tests.plugins.SystematicDysfunctioner',
 # ...
]


Just like middleware or anything else, each string must be a dot separated, importable path to an actual class. Each plugin class will be instantiated and added to the Nose test runner.

Caveats

South installs its own test command that turns off migrations during testing. Make sure that django_nose comes after south in INSTALLED_APPS so that django_nose's test command is used.
READ MORE   
Last updated on May 22nd, 2012

0 User reviews so far.

SUBMIT