From e4e4eaea2e741f295119bad1dc7288301f96873f Mon Sep 17 00:00:00 2001 From: Armando Banuelos Date: Wed, 6 Mar 2024 14:00:13 -0800 Subject: [PATCH] fix: adding coverage only to non-testing files but allowing pytest to run all pytests from src and examples folder --- .coveragerc | 3 +++ pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.coveragerc b/.coveragerc index 4a3da96f5..f7d7bcc91 100644 --- a/.coveragerc +++ b/.coveragerc @@ -3,6 +3,9 @@ branch = True omit = src/scenic/simulators/webots/WBT*.py + examples/conftest.py + tests/* + */__init__.py [report] # Regexes for lines to exclude from consideration diff --git a/pyproject.toml b/pyproject.toml index c1997cb51..403fe932e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -122,4 +122,4 @@ extend_skip_glob = [ [tool.pytest.ini_options] norecursedirs = ["examples"] -addopts = "--cov=tests --cov-fail-under=80" \ No newline at end of file +addopts = "--cov . --cov-fail-under=80" \ No newline at end of file