Add pytest-cov for coverage tracking

This commit is contained in:
P. Sai Vinay 2020-11-06 23:04:15 +05:30 committed by GitHub
parent 4e92e3cf62
commit 75451f1e93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 2 deletions

3
.gitignore vendored
View File

@ -50,3 +50,6 @@ ENV/
env.bak/
venv.bak/
.mypy_cache
# Coverage
.coverage

View File

@ -100,8 +100,14 @@ def test(session):
session.install("-r", "requirements-dev.txt")
session.run("python", "-m", "eland.tests.setup_tests")
session.install(".")
session.run("pytest", "--doctest-modules", *(session.posargs or ("eland/",)))
session.run("pytest", "--nbval", "eland/tests/tests_notebook/")
session.run(
"pytest",
"--cov=eland",
"--doctest-modules",
*(session.posargs or ("eland/",)),
"--nbval",
"eland/tests/tests_notebook/",
)
session.run(
"python",

View File

@ -9,3 +9,4 @@ scikit-learn>=0.22.1
xgboost>=1
nox
lightgbm>=2.3.0
pytest-cov