473,405 Members | 2,373 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

coverage.py problem

Hi,
I have a problem in using coverage.py module in my project:

../cov -c
Traceback (most recent call last):
File "./cov", line 10, in ?
coverage.the_coverage.command_line(sys.argv[1:])
File "/usr/lib/python2.4/site-packages/coverage.py", line 363, in
command_line self.collect()
File "/usr/lib/python2.4/site-packages/coverage.py", line 467, in
collect
for file in os.listdir(cache_dir):
OSError: [Errno 2] No such file or directory: ''

The make file, in which coverage.py are been used is:
.................
pythonpath=..
# Targets
..PHONY: pylint build test clean coverage
pylint: test
$(MAKE) -C .. pylint
test: build clean_coverage $(test_results) coverage
coverage:
./cov -c
./cov -r -m ../src*py
build:
$(MAKE) -C ../src
clean_coverage:
-rm .coverage*
./cov -e
clean:
-rm *~* $(test_results)
# Tests
%.pass :: %.py $(srcs)
-rm $@
PYTHONPATH=$(pythonpath) DJANGO_SETTINGS_MODULE=$(settings) ./cov -x -
p $< && touch $@
....................
If anybody knows what can be the reason of this error, please tell me

With best regards, Orin

Mar 19 '07 #1
2 1772
En Mon, 19 Mar 2007 17:58:49 -0300, Orin <sa*****@ukr.netescribió:
Hi,
I have a problem in using coverage.py module in my project:

./cov -c
Traceback (most recent call last):
File "./cov", line 10, in ?
coverage.the_coverage.command_line(sys.argv[1:])
File "/usr/lib/python2.4/site-packages/coverage.py", line 363, in
command_line self.collect()
File "/usr/lib/python2.4/site-packages/coverage.py", line 467, in
collect
for file in os.listdir(cache_dir):
OSError: [Errno 2] No such file or directory: ''
It appears that cache_dir is an empty string (and shouldn't) - that's all
I can say about that unknown module (to me).

--
Gabriel Genellina

Mar 19 '07 #2

OrinI have a problem in using coverage.py module in my project:

You might want to contact Ned Batchelder, the author:

http://nedbatchelder.com/code/modules/coverage.html

Skip
Mar 19 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Richard Wesley | last post by:
I am using coverage.py to run my unit test suite to check for missing tests. It mostly works, but for some mysterious reason, some of the files can't be found because they are not in the same...
1
by: Vijay Sankar | last post by:
Hi, I am using coverage.py to check the code coverage for some of my Python scripts. For a particular script which uses 'exit' calls, I am getting the following error when I invoke the script...
7
by: patrickmee | last post by:
Hi all, The database that our php applications are running on is getting a major clean up. RI will be enforced, normalization and all that good stuff. Our QA department have a set of...
0
by: Orin | last post by:
Thank you very much. Just reading the comments on that url, I found the reason of my problem. It was here: --- coverage.py +++ coverage.py @@ -464,6 +464,8 @@ def collect(self):...
1
by: Piotr Hrebieniuk | last post by:
Hi there. I've spent few hours and found nothing, so here's my question: How can i run tests wrote by myself on a module, using coverage.py ? Let's assume i have a module mymod.py which i want...
2
by: Noah | last post by:
I'm trying to use the trace module to build coverage files for a multi-threaded program. http://docs.python.org/lib/module-trace.html I test my application using trace.py from the command-line...
5
by: ev | last post by:
Hello, We are looking for any testing tool that is capable of checking code coverage for C,C ++ and Java code. Or at least for C and C++. We want to know how much (percentage) of our code written...
0
by: python | last post by:
Looking for feedback from people using a coverage checking utility. I've found two - wondering if there's any feature that would recommend one of these utilities vs. another (or argue for the use...
2
by: innes | last post by:
I can't find anything on this in the VS2008 help (searching for 'coverage' returns no results). Can anyone confirm that VS2008's code coverage functionality doesnt extend to working on C++/CLI...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.