From 1ea544aa48fc42d7d45795757fe9735ec5e72ca6 Mon Sep 17 00:00:00 2001 From: "Bruno P. Kinoshita" Date: Thu, 7 Oct 2021 15:17:18 +1300 Subject: [PATCH] Add coverage configuration file --- .coveragerc | 54 ++++++++++++++++++++++++++++++++ .github/workflows/unit_tests.yml | 2 +- 2 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 000000000..f7fd421d6 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,54 @@ +[run] +branch=True +cover_pylib=False +concurrency=thread +data_file=.coverage +disable_warnings= + trace-changed + module-not-python + module-not-imported + no-data-collected + module-not-measured + # include-ignored +omit = + venv/* + janis_core/tests/* + setup.py +parallel = True +plugins= +include= + janis_core/* +timid = False + + +[report] + +exclude_lines = + pragma: no cover + def __repr__ + raise NotImplementedError + if __name__ == .__main__.: + def parse_args + def main +fail_under=0 +ignore_errors = False +omit = + venv/* + janis_core/tests/* + setup.py +precision=2 +show_missing=False +skip_covered=False +sort=Name + +[html] + +directory=htmlcov +extra_css= +title= + + +[xml] + +output=coverage.xml +package_depth=99 diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index be3676d7c..4a0e06df6 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -1,6 +1,6 @@ name: Unit Tests -on: [push] +on: [push, pull_request] jobs: build: