From bd0678b2d5e377d6d42c259edfc9f976b013575a Mon Sep 17 00:00:00 2001 From: pdelboca Date: Mon, 30 May 2022 11:14:23 +0200 Subject: [PATCH] Add pytest-cov --- .github/workflows/test.yml | 2 +- dev-requirements.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c68c308..8d027b5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -65,4 +65,4 @@ jobs: paster --plugin=ckan db init -c test.ini paster --plugin=ckanext-googleanalytics initdb -c test.ini - name: Run tests - run: pytest --ckan-ini=test.ini --disable-warnings ckanext/googleanalytics/tests + run: pytest --ckan-ini=test.ini --cov=ckanext.googleanalytics --disable-warnings ckanext/googleanalytics/tests diff --git a/dev-requirements.txt b/dev-requirements.txt index dfb701d..6aac721 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,2 +1,3 @@ pytest-ckan pytest-factoryboy +pytest-cov \ No newline at end of file