Permanently added pytest-cov in pyproject.toml file to generate coverage reports
This commit is contained in:
parent
fd6a4507ac
commit
3e981f759d
|
@ -10,13 +10,13 @@ build-backend = "setuptools.build_meta"
|
||||||
write_to = "src/_pytest/_version.py"
|
write_to = "src/_pytest/_version.py"
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
minversion = "2.0"
|
minversion = "0.1.dev14953+gfd6a450"
|
||||||
addopts = "-rfEX -p pytester --strict-markers"
|
addopts = "-rfEX -p pytester --strict-markers"
|
||||||
python_files = ["test_*.py", "*_test.py", "testing/python/*.py"]
|
python_files = ["test_*.py", "*_test.py", "testing/python/*.py"]
|
||||||
python_classes = ["Test", "Acceptance"]
|
python_classes = ["Test", "Acceptance"]
|
||||||
python_functions = ["test"]
|
python_functions = ["test"]
|
||||||
# NOTE: "doc" is not included here, but gets tested explicitly via "doctesting".
|
# NOTE: "doc" is not included here, but gets tested explicitly via "doctesting".
|
||||||
testpaths = ["testing"]
|
testpaths = ["testing/examples/my_test.py"]
|
||||||
norecursedirs = ["testing/example_scripts"]
|
norecursedirs = ["testing/example_scripts"]
|
||||||
xfail_strict = true
|
xfail_strict = true
|
||||||
filterwarnings = [
|
filterwarnings = [
|
||||||
|
|
|
@ -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 == []
|
Loading…
Reference in New Issue