mirror of
https://github.com/elastic/eland.git
synced 2025-07-11 00:02:14 +08:00
Add pytest-cov for coverage tracking
This commit is contained in:
parent
4e92e3cf62
commit
75451f1e93
3
.gitignore
vendored
3
.gitignore
vendored
@ -50,3 +50,6 @@ ENV/
|
||||
env.bak/
|
||||
venv.bak/
|
||||
.mypy_cache
|
||||
|
||||
# Coverage
|
||||
.coverage
|
||||
|
10
noxfile.py
10
noxfile.py
@ -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",
|
||||
|
@ -9,3 +9,4 @@ scikit-learn>=0.22.1
|
||||
xgboost>=1
|
||||
nox
|
||||
lightgbm>=2.3.0
|
||||
pytest-cov
|
||||
|
Loading…
x
Reference in New Issue
Block a user