Tagged Questions
The coverage.py tag has no wiki summary.
0
votes
1answer
46 views
python nose coverage plugin too thorough (forced pylib option)
I am using nose 1.3.0 and coverage 3.7.
Running on a command line
coverage run test_myfile.py
coverage report
produces a report that limits itself to the functions in myfile.py:
Name ...
0
votes
1answer
46 views
pdb still will not show output even after using -s option with Django Nose
I'm trying to debug my tests and I am using a custom testrunner. I am able to get pdb to function just fine when I am not using it in conjunction with manage.py.
in mysite/blog/tests/models_tests.py ...
0
votes
1answer
35 views
Why doesn't “coverage.py run -a” always increase my code coverage percent?
I have a GUI application that I am trying to determine what is being used and what isn't. I have a number of test suites that have to be run manually to test the user interface portions. Sometimes I ...
2
votes
0answers
45 views
Making py.test, coverage and tox work together: __init__.py in tests folder?
I'm having a weird problem with tox, py.test, coverage and pytest-cov: when py.test with the --cov option is launched from fox, it seems to require an __init__.py file in the tests folder which is not ...
2
votes
0answers
148 views
Getting coverage with dev_appserver.py excludes my project files
I run the following with Coverage 3.6, Appengine 1.8.0, Python 2.7.4 on 64 bit Ubuntu 13.04:
coverage run dev_appserver.py project
When I look at coverage results I can see details for all files ...
2
votes
0answers
386 views
How to exclude a file from coverage.py?
I use nosetest's coverage.py plugin. Is it somehow possible to exclude entire files or folders from the coverage report? My use case is having an external library in my project folder that obviously ...
1
vote
0answers
37 views
why is python coverage saying lines were missed?
I'm trying to use coverage with Django, but I seem to be getting incorrect results. My app is named "stats" and I have this test:
class ListSchoolsTest(TestCase):
def test_initial_list(self):
...
0
votes
0answers
7 views
Get rid of absolute paths from coverage.xml report generated by coverage.py
Is there a way to get relative paths to resulted coverage.xml (or strip off prefix) using coverage.py?
0
votes
0answers
32 views
run django TestCase using coverage
the file cover is 0% when I use django TestCase test RPC interface.
This is my code:
run.py
from coverage import coverage
cov = coverage()
cov.erase()
cov.start()
testResult = run()
cov.stop()
...
0
votes
0answers
23 views
What does “timid” do in code coverage?
I am exploring the option of using code coverage, but could not understand the timid option. Can anyone help me understand what the timid option does? Any example will help me lot.
From the ...
0
votes
0answers
23 views
Coverage - How to include tests from another directory when using coverage report?
How can I use "Coverage" to test the coverage of a specific module using the tests from another directory?
For example, if I've got a project with the following structure:
projectroot/
myapp/
...
0
votes
0answers
137 views
How do I stop coverage.py running tests twice in a virtualenv?
Python unittest discover runs tests inside a virtualenv twice when I run the following command:
$ coverage run -m unittest discover
This is probably because of the /local directory within the ...