Skip to content Skip to sidebar Skip to footer

Pass Command Line Arguments To Nose Via "python Setup.py Test"

Package Settings I have built a Python package which uses nose for testing. Therefore, setup.py contains: .. test_suite='nose.collector', tests_require=['nose'], .. And python set

Solution 1:

You can set nosetests option using setup.cfg

For example in you setup.cfg

[nosetests]with-xunit=1

Further information can be found at http://nose.readthedocs.io/en/latest/api/commands.html

Solution 2:

Nose provides its own setuptools command (nosetests) which accepts command line arguments:

python setup.py nosetests --with-xunit

More information can be found here: http://nose.readthedocs.io/en/latest/setuptools_integration.html

Post a Comment for "Pass Command Line Arguments To Nose Via "python Setup.py Test""