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?
-
5check that you have the latest version; see this bugfix: github.com/Bahus/nose/commit/…Radio-– Radio-2013年04月17日 16:38:39 +00:00Commented 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?Kannan Ekanath– Kannan Ekanath2013年04月18日 09:28:34 +00:00Commented 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?Kannan Ekanath– Kannan Ekanath2013年04月18日 14:24:26 +00:00Commented Apr 18, 2013 at 14:24
1 Answer 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
Comments
Explore related questions
See similar questions with these tags.