You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And some tools (such as VSCode Python's plugin) depends on pytest --collect-only. However, when running that it fails as it doesn't actually run the tests and it displays a coverage way below the real value.
Expected vs actual result
Expected:
when running pytest --collect-only I'd expect it only to fail if for some reason it collect the list of tests, ignoring the fail under parameter.
Actual result: pytest --collect-only fails stating the coverage didn't reach the goal.
Summary
My pyproject.toml have the following sections (among other):
And some tools (such as VSCode Python's plugin) depends on
pytest --collect-only
. However, when running that it fails as it doesn't actually run the tests and it displays a coverage way below the real value.Expected vs actual result
Expected:
when running
pytest --collect-only
I'd expect it only to fail if for some reason it collect the list of tests, ignoring the fail under parameter.Actual result:
pytest --collect-only
fails stating the coverage didn't reach the goal.Reproducer
Versions
pip list
output:Config
Code
https://github.com/maurofaccenda/pytest-cov-issue
The text was updated successfully, but these errors were encountered: