Test your pytest-cov knowledge with a free interactive quiz — 22 questions with answers and explanations. No signup needed to play.
Question 1/12Score 0
What does setting `branch = True` in a `.coveragerc`'s `[run]` section change about the coverage report?
In this round
What does setting `branch = True` in a `.coveragerc`'s `[run]` section change about the coverage report?
What does `--cov-fail-under=N` do?
What is the effect of adding `# pragma: no cover` as a comment on a line or block?
What does `--cov-append` do?
How can pytest-cov be used to identify specific untested lines in a file?
What does it mean if `--cov-report=term-missing` shows a file at 0% coverage?
What is the purpose of installing pytest-cov, given that coverage.py could be run standalone via `coverage run -m pytest`?
What is the relationship between pytest-cov and coverage.py?
What is a `.coveragerc` (or `[tool.coverage.run]` in `pyproject.toml`) file used for?
What does "line coverage" measure?
What is the basic command to run tests with coverage reporting via pytest-cov?
If a project's coverage percentage suddenly drops after a pull request, what is the most direct way to see exactly what caused it using pytest-cov's output?