Permanently added pytest-cov in pyproject.toml file to generate coverage reports

This commit is contained in:
HomieOmie 2023-05-06 00:43:40 -04:00
parent fd6a4507ac
commit 3e981f759d
3 changed files with 9 additions and 2 deletions

View File

@ -10,13 +10,13 @@ build-backend = "setuptools.build_meta"
write_to = "src/_pytest/_version.py"
[tool.pytest.ini_options]
minversion = "2.0"
minversion = "0.1.dev14953+gfd6a450"
addopts = "-rfEX -p pytester --strict-markers"
python_files = ["test_*.py", "*_test.py", "testing/python/*.py"]
python_classes = ["Test", "Acceptance"]
python_functions = ["test"]
# NOTE: "doc" is not included here, but gets tested explicitly via "doctesting".
testpaths = ["testing"]
testpaths = ["testing/examples/my_test.py"]
norecursedirs = ["testing/example_scripts"]
xfail_strict = true
filterwarnings = [

View File

@ -0,0 +1,6 @@
def test_():
m = [
"This is some dummy test which shows the strange way in which Pycharm"
" displays the full diff."
]
assert m == []

View File

@ -65,6 +65,7 @@ deps =
xdist: pytest-xdist>=2.1.0
xdist: -e .
{env:_PYTEST_TOX_EXTRA_DEP:}
pytest-cov
[testenv:linting]
skip_install = True