Python Forum

Full Version: nosetest issue
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
parent/
    test1/
        __init__.py
        sample1.py
    test2/
        __init__.py
        sample.py
This is a basic structure i am following in my project.Now to generate coverage report i am using the command
nosetests --with-coverage --cover-erase --cover-package=test1 --cover-html
.I run above command from root/source directory like
<c:/users/parent> nosetests --with-coverage --cover-erase --cover-package=test1 --cover-html
.This coverage command runs both the test folders test1,test2.What should i do to make only test1 run.I also want the coverage report to be inside test1 folder.but now it is getting generated under parent(by default)