Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
nosetest issue
#1
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)
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020