django-nose icon indicating copy to clipboard operation
django-nose copied to clipboard

Add plugin to describe tests

Open skyl opened this issue 12 years ago • 2 comments

This may be out of scope for django-nose. But, I can't live without this plugin and hate the default way that tests are described.

With the plugin, you can add

NOSE_PLUGINS = [
    'django_nose.plugin.PrintRightPlugin',
]
NOSE_ARGS = ['--with-printright']

and get test printed out like

test_models:FoobarTestCase.test_something ... ok

which you can just copy paste to run instead of having to disinterpolate, for instance:

test_something (test_models.FoobarTestCase)

skyl avatar Mar 30 '13 20:03 skyl

Have you given nose-progressive a try? I never use nose without it and in fact wrote it in part to address this very issue.

erikrose avatar Mar 31 '13 02:03 erikrose

I don't think we'll add as an official plugin (https://github.com/erikrose/nose-progressive is a nice, fully featured alternative), but this may make a good example documentation for writing your own plugin.

jwhitlock avatar Aug 05 '15 01:08 jwhitlock