Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nosetests not reading the config file

Tags:

nose

.noserc

[nosetests]
with-xunit

Runnig the nosetest using the following command

nosetests -w ./test/unit_test

When I run the test using nosetests it does not create a nosetests.xml file. But if I run the command below it does generate the nosetests.xml file.

nosetests -w ./test/unit_test --with-xunit

Not sure why it is not reading the .noserc file when I run nosetests.

like image 896
Joel James Avatar asked May 30 '13 03:05

Joel James


2 Answers

You can either have a .noserc file in your user/home directory, or you can have a file of the same format in your project directory under the name setup.cfg

like image 173
philfreo Avatar answered Oct 27 '22 20:10

philfreo


Adding the configuration file to the home directory did the trick.

~/.noserc
like image 26
Joel James Avatar answered Oct 27 '22 18:10

Joel James