summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastian Venthur <bastian.venthur@flixbus.com>2021-08-18 11:23:14 +0200
committerBastian Venthur <bastian.venthur@flixbus.com>2021-08-18 11:23:14 +0200
commit2daad49256e2a2a6ec9f6a7d26aa3ced6247434a (patch)
tree26afb411124a23aac94d618fe1e92f8a34e7f3bb
parent96d95e8d6039c09dfb31ed5e65f46982fd11fe66 (diff)
downloadfeedgenerator-2daad49256e2a2a6ec9f6a7d26aa3ced6247434a.tar.gz
added coverage report
this config will ommit the report on files with 100% coverage
-rw-r--r--.github/workflows/main.yml2
-rw-r--r--.gitignore1
-rw-r--r--setup.cfg7
-rw-r--r--tox.ini1
4 files changed, 10 insertions, 1 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 06f57fd..e6ee180 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -25,5 +25,5 @@ jobs:
run: python -m pip install -e .
- name: Test with pytest
run: |
- python -m pip install pytest
+ python -m pip install pytest pytest-cov
pytest
diff --git a/.gitignore b/.gitignore
index 1c2c744..db83104 100644
--- a/.gitignore
+++ b/.gitignore
@@ -19,6 +19,7 @@ pip-log.txt
# Unit test / coverage reports
.coverage
.tox
+htmlcov/
#Translations
*.mo
diff --git a/setup.cfg b/setup.cfg
index a751016..18a2b67 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,2 +1,9 @@
[sdist]
force_manifest = 1
+
+[tool:pytest]
+addopts =
+ --cov=feedgenerator
+ --cov=tests_feedgenerator
+ --cov-report=html
+ --cov-report=term-missing:skip-covered
diff --git a/tox.ini b/tox.ini
index ef55f45..8528187 100644
--- a/tox.ini
+++ b/tox.ini
@@ -12,3 +12,4 @@ commands =
pytest
deps =
pytest
+ pytest-cov