From fce499eaafa0afecee5c14346ff7d75e2fe999b6 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Sat, 20 Mar 2021 16:27:50 +0100 Subject: ci: Add reports and coverage tracking for API --- api/.gitignore | 2 ++ api/pytest.ini | 1 + api/requirements.txt | 1 + 3 files changed, 4 insertions(+) (limited to 'api') diff --git a/api/.gitignore b/api/.gitignore index 0e4f0a70..b0390689 100644 --- a/api/.gitignore +++ b/api/.gitignore @@ -14,3 +14,5 @@ _mailinglist config.json test.json .env* +.coverage +.junit-report.xml diff --git a/api/pytest.ini b/api/pytest.ini index 8c28be16..8e7964ba 100644 --- a/api/pytest.ini +++ b/api/pytest.ini @@ -2,3 +2,4 @@ env = OPENDC_FLASK_TESTING=True OPENDC_FLASK_SECRET=Secret +junit_family = xunit2 diff --git a/api/requirements.txt b/api/requirements.txt index 21a1c0a1..e1061945 100644 --- a/api/requirements.txt +++ b/api/requirements.txt @@ -30,6 +30,7 @@ pylint==2.5.3 pymongo==3.10.1 pyparsing==2.4.7 pytest==5.4.3 +pytest-cov==2.11.1 pytest-env==0.6.2 pytest-mock==3.2.0 python-dotenv==0.14.0 -- cgit v1.2.3