Enables you to modify docstring of tests based on their attributes
You can install nose-docstring-modifier plugin using pip:
$ pip install nose-docstring-modifier
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
- 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: | Maroun Maroun |
---|---|
Contributors: | Tal Ben Basat Nicole Franco Roy Klinger Sergey Ragatsky |
Version: | 0.0.6 |