4
coverage 3.4
Nose 1.1.2
Python 2.7.1

I have a python project structure like the below

root
 src #source directory
 company
 division
 pkg1
 module1
 module2
 pkg2
 module1
 module2
 test #All test files
 company
 division
 pkg1
 test_module1
 test_module2

When I run python nose I use the following snippet

#Run tests
#Add dependencies like cheetah, yaml, etc to the sys.path
if __name__ == "__main__":
 os.environ["NOSE_INCLUDE_EXE"] = "1"
 os.environ["NOSE_WITH_XUNIT"] = "1"
 os.environ["NOSE_WITH_COVERAGE"] = "1"
 os.environ["NOSE_COVER_PACKAGE"] = "company.division"
 nose.main()

My expectation was that I get clear and concise output of all packages underneath "company.division" however I get files from cheetah, yaml and their coverage which I am not interested at all. Setting the NOSE_COVER_PACKAGE does not seem to make any difference at all. Can someone tell me what I am missing?

oz123
29.1k31 gold badges133 silver badges196 bronze badges
asked Apr 17, 2013 at 15:45
3
  • 5
    check that you have the latest version; see this bugfix: github.com/Bahus/nose/commit/… Commented Apr 17, 2013 at 16:38
  • Sorry a bit unclear from the git commit you mentioned. Are you saying I should try nose 1.3.0? Commented Apr 18, 2013 at 9:28
  • Upgrading to nose 1.3 and coverage 3.6 fixes this. Please can you post this as an answer? Commented Apr 18, 2013 at 14:24

1 Answer 1

1

OP reports that upgrading to nose 1.3 and coverage 3.6 fixes this.

See this bugfix for reference: https://github.com/Bahus/nose/commit/ddb14f0228ca94ae33d9e67785dc06bf412603f2

answered Apr 18, 2013 at 18:53
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.