473,809 Members | 2,876 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_co verage.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(cach e_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=$(py thonpath) DJANGO_SETTINGS _MODULE=$(setti ngs) ./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 1786
En Mon, 19 Mar 2007 17:58:49 -0300, Orin <sa*****@ukr.ne tescribió:
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_co verage.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(cach e_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
2017
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 directory as configure.py and unit_test.py. But only SOME of them. Anyone have any ideas? -- - rmgw
1
1591
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 with the -x option for coverage. Error in sys.exitfunc: Traceback (most recent call last):
7
3056
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 regression plans but I don't know how complete they are. Neither do they :( My idea would be to have them run through their plans on an application
0
916
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): cache_dir, local = os.path.split(self.cache)
1
1282
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 to test with tests from file mytest.py (i.e. class inherited from unittest.TestCase). How to do that with coverage.py? Where i should put the code that runs the tests? -- Regards
2
1262
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 like this: /usr/lib/python2.5/trace.py --missing --count --summary tools/ testall.py
5
4283
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 on C/C++ is covered in terms of function calls and line calls. We tried Rational PureCoverage. It's excellent but has some limitations in our case. Any idea would be greatly appreciated.
0
796
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 of both utilities). Coverage.py http://nedbatchelder.com/code/modules/coverage.html and Pycover
2
2309
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 assemblies, apart from the least useful type (/clr:safe)? I think I saw that last detail somewhere on the internet. Thanks.
0
9600
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10376
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10114
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9198
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6880
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5548
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4331
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3860
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3011
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.