From 73db014fe181198652b8f4f3af3141fe16100588 Mon Sep 17 00:00:00 2001 From: Guy Taylor Date: Tue, 23 Oct 2018 15:28:27 +0100 Subject: [PATCH] Wire in Python code coverage testing Wire in pytest-cov to give code coverage results when running tests. This does not publish the information curently. --- Makefile | 2 +- requirements.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a246f4805b..5e8542357b 100644 --- a/Makefile +++ b/Makefile @@ -83,7 +83,7 @@ license: LICENSE.md regen-apis: | clean-all-api clean-all-cli gen-all-api gen-all-cli license test-gen: $(PYTHON) - $(PYTEST) src + $(PYTEST) --cov=src src test: test-gen diff --git a/requirements.txt b/requirements.txt index c2cef3623b..a278ddd44f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,4 +2,5 @@ mako pyyaml mkdocs==0.16.3 pytest +pytest-cov importlib_resources