python-coverage Questions

4

Solved

I am new to coverage and ran into a strange problem. My coverage is taking my virtual environment site packages into account. Here is the output of the coverage run: coverage run test.py ............
Oribella asked 22/8, 2015 at 20:26

2

Solved

I can't seem to get code coverage with Nose to work, despite having the plugin installed. Any ideas on how to fix this? 12:15:25 ~/sandbox/ec$ nosetests --plugins Plugin xunit Plugin deprecated P...
Melamine asked 23/1, 2013 at 20:17

3

Solved

Using nosetests and the coverage module, I would like coverage reports for code to reflect the version being tested. Consider this code: import sys if sys.version_info < (3,3): print('older ve...
Schmo asked 19/2, 2016 at 19:19

5

Solved

I'm wondering if it's possible to combine coverage.xml files into 1 file to see global report in HTML output. I've got my unit/functional tests running as 1 command and integration tests as the se...
Expostulate asked 6/10, 2014 at 10:10

2

I'm trying to find a python code coverage tool which can measure if subexpressions are covered in a statement: For instance, I'd like to see if condition1/condition2/condtion3 is covered in follow...
Narcoma asked 16/1, 2014 at 0:56

1

I have a Pyramid web application which uses Jinja2 as template engine. It is tested using the Pyramid testing helpers together with py.test and the coverage plugin. But coverage works only for my P...
Westbrook asked 13/12, 2013 at 14:19

2

I am new to Jenkins and Docker and even after some researches, I do not find the way to do these things. I want to : Execute pytest and python-coverage on my project inside a docker container. T...
Emmett asked 20/7, 2016 at 9:1

1

Solved

I'm using coverage.py to measure the code coverage of my tests. I've enabled branch coverage, but I can't quite make sense of the report. Without branch coverage, I get 100% coverage: Name Stmts ...
Radmilla asked 18/5, 2016 at 15:31

1

I don't quite understand what Python's branch coverage stats are trying to tell me. Given code of the form def f(a, b): c = (i for i in a) d = (j for j in b) # Line of interest return dict(zip(...
Polish asked 10/2, 2016 at 14:24

2

Solved

I've got a python program which is tested by running it several times with different inputs, and comparing the outputs against reference results. I'd like to get code coverage of all the tests com...
Biostatics asked 27/2, 2014 at 17:30

2

Solved

I've got a couple of Django projects that I work on, and I use Jenkins for continuous integration purposes. I've had that arrangement up and running for a while and it works well. I'd like to be a...
Farmhand asked 26/2, 2014 at 14:1

2

... and a pony! No, seriously. I am looking for a way to organize tests that "just works". Most things do work, but not all pieces fit together. So here is what I want: Having tests automatically...
Peccavi asked 7/6, 2013 at 11:0

1

When I am writing tests or debugging code I would like to be able to add a line of Python that will notify me if that line is never executed. Is this possible? For example, I want to be able to wr...
Subito asked 29/8, 2015 at 18:22

2

Solved

I recently stumbled upon some issue with running coverage measurements within virtual environment. I do not remember similar issues in the past, nor I was able to find solution on the web. Basical...
Rost asked 23/9, 2013 at 12:18

1

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): se...
Hodges asked 2/9, 2013 at 2:31

1

Solved

I have code that runs conditionally depending on the current version of Python, because I'm supporting 2.6, 2.7, and 3.3 from the same package. I currently generate a coverage report like this, us...
Orinasal asked 24/8, 2013 at 12:59

1

Solved

I can't get Coverage to work with PyDev. Every file I run shows up with: "File has no statistics." I'm following the instructions by checking 'Enable code coverage for new launches', and dragging ...
Dixil asked 26/8, 2012 at 12:28

1

I'm fairly green with python testing, so this might be something I'm doing wrong.. When I run my tests, the test runners works fine and coverage too.. but between the two I get an assertion error:...
Rorqual asked 19/2, 2012 at 19:51

1

Solved

I'm using nosetests to run a few unit tests and show me our code coverage using something like: nosetests -w ./test --with-xunit --with-coverage --cover-tests This works well except for the fact...
Firooc asked 30/3, 2011 at 20:25

2

I have a very large python project with a very large test suite. Recently we have decided to quantify the quality of our test-coverage. I'm looking for a tool to automate the test coverage report...
Fontana asked 25/6, 2010 at 9:44

2

Solved

My build environment is configured to compile, run and create coverage file at the command line (using Ned Batchelder coverage.py tool). I'm using Eclipse with PyDev as my editor, but for practic...
Doorstep asked 17/11, 2008 at 23:4
1

© 2022 - 2024 — McMap. All rights reserved.