Skip to content

issues Search Results · repo:pytest-dev/pytest-cov language:Python

Filter by

431 results
 (104 ms)

431 results

inpytest-dev/pytest-cov (press backspace or delete to remove)

When I ran tox command as described in the document, the following error occured. report: commands[0] coverage report No data to report. report: exit 1 (0.13 seconds) /home/koyuki/pytest-cov coverage ...
  • koyuki7w
  • Opened 
    7 days ago
  • #707

Hi everyone, I know I can use if DEBUG: # pragma: no cover foo bar baz but this also ignore the DEBUG line. In my case, I want to ensure that the if statement is indeed ran, so I would ...
  • ego-thales
  • 4
  • Opened 
    19 days ago
  • #704

Hello, Is there a recommended way to test that a context manager raises, without losing the coverage? For example: with ( pytest.raises(exc, match=match), my_context_that_should_generate_the_exc, ...
  • ego-thales
  • 2
  • Opened 
    21 days ago
  • #703

Hi everyone, Consider this: import pytest @pytest.fixture def foo(): yield raise def test_a(): raise def test_b(foo): ... It provides this report: $ pytest [...]/tmp.py =============================================================================================== ...
  • ego-thales
  • 3
  • Opened 
    26 days ago
  • #702

Hi there, I m not sure this is a pytest bug but here it goes. I have the following pyproject.toml configuration [tool.pytest.ini_options] testpaths = test addopts = [ --import-mode=importlib ...
  • ego-thales
  • 9
  • Opened 
    on Jun 20
  • #701

The argument used to be called hookwrapper. Our code broke after this rename. File /usr/local/lib/python3.11/dist-packages/pytest_cov/plugin.py , line 318, in CovPlugin @pytest.hookimpl(wrapper=True) ...
  • ondras
  • 5
  • Opened 
    on Jun 12
  • #698

Summary When I run my tests with the following command: pytest --html=reports/tests/index.html \ --junit-xml=reports/tests/junit.xml \ --cov=src \ --cov-report term \ --cov-report ...
  • JCHacking
  • 10
  • Opened 
    on Jun 5
  • #694

Summary pytest-xdist and pytest-cov plugins cause an internal error when used together but only on pytest version 8.4.0 Expected vs actual result Expected pytest-xdist+pytest-cov to succeed. See the ...
bug
discussion needed
help wanted
  • rjdbcm
  • 37
  • Opened 
    on Jun 2
  • #693

Summary If pytest runs in e.g. ./tests/, it reads ../pyproject.toml for configuration options, and that squares with my expectation. pytest-cov does seem to look only for ./pyproject.toml (and also writes ...
  • madduck
  • Opened 
    on May 11
  • #692

--cov-report=term-missing tells us which line numbers aren’t covered, but you still have to open the file to see the actual code. Could we add a flag (something like --show-code) that prints the uncovered ...
  • gsganden
  • Opened 
    on May 8
  • #691
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue search results · GitHub