diff --git a/.gitignore b/.gitignore index 2a08cbf..b522b86 100644 --- a/.gitignore +++ b/.gitignore @@ -50,3 +50,6 @@ ENV/ env.bak/ venv.bak/ .mypy_cache + +# Coverage +.coverage diff --git a/noxfile.py b/noxfile.py index 60de344..565eea6 100644 --- a/noxfile.py +++ b/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", diff --git a/requirements-dev.txt b/requirements-dev.txt index 94d8382..553c739 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -9,3 +9,4 @@ scikit-learn>=0.22.1 xgboost>=1 nox lightgbm>=2.3.0 +pytest-cov