Skip to main content

A Nose plugin to fix the way tests are described when the verbose flag (-v) is used

Project description

This is a simple Nose plugin that forces nosetests to print the full test name in verbose mode, rather than just the docstring.

For example, given the test file example.py:

class MyTestCase(TestCase):

    def test_without_docstring(self):
        pass

    def test_with_docstring(self):
        """This is my docstring"""
        pass

This plugin changes the output of nosetests -v example.py from:

This is my docstring ... ok
test_without_docstring (mymodule.MyTestCase) ... ok

To:

test_with_docstring (mymodule.MyTestCase) ... ok
test_without_docstring (mymodule.MyTestCase) ... ok

Install with pip install nose-description-fixer-plugin.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for nose-descriptionfixer, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size nose-descriptionfixer-0.0.4.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page