Skip to content

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

Filter by

430 results
 (103 ms)

430 results

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

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 
    3 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 
    5 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 
    10 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 
    23 days ago
  • #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

Summary It looks like pytest-cov handles case _ correctly, but with case _ as ... it considers the non-matching case to be an uncovered branch. This looks somewhat related to #533 but I think it s different ...
  • dseomn
  • 3
  • Opened 
    on May 5
  • #690
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! 
Press the
/
key to activate the search input again and adjust your query.
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! 
Press the
/
key to activate the search input again and adjust your query.
Issue search results · GitHub