Skip to content

Latest commit

 

History

History
66 lines (42 loc) · 1.18 KB

README.rst

File metadata and controls

66 lines (42 loc) · 1.18 KB

Enables you to modify docstring of tests based on their attributes

Installing

You can install nose-docstring-modifier plugin using pip:

$ pip install nose-docstring-modifier

Using

Given the following test function:

@attr(section='MySection', type='functional+', module='MyModule', id=1)
def test_function(self):
    """
    This is the original docstring
    """
    ok_(True)

running it with nosetest using nose-docstring-modifier plugin:

nosetests --with-docstring-modifier --prefix=id,section --suffix=type --replace=('s','S')

will print

(1, MySection) ThiS iS the original docString (functional+) ... ok

Features

  • Works with multiprocess plugin:
nosetests --processes=10 --process-restartworker with-docstring-modifier --prefix=id

spreads test run among 10 processes, appending id attribute to each test.

Authors

Authors:

Maroun Maroun

Contributors:

Tal Ben Basat

Nicole Franco

Roy Klinger

Sergey Ragatsky

Version:

0.0.6