diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-03-20 16:51:05 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-20 16:51:05 +0100 |
| commit | 0862f8489b1122671cefa5c5bd59f677b56a3712 (patch) | |
| tree | 9256a835306601fa522476d02be4c38e0bf001c9 /api | |
| parent | 592d60d6d2ef51923eebd844888930b07892da39 (diff) | |
| parent | fce499eaafa0afecee5c14346ff7d75e2fe999b6 (diff) | |
Add support for code coverage tracking via Codecov
This pull request enables aggregate code coverage reports via Jacoco and adds support for coverage tracking via Codecov.
Diffstat (limited to 'api')
| -rw-r--r-- | api/.gitignore | 2 | ||||
| -rw-r--r-- | api/pytest.ini | 1 | ||||
| -rw-r--r-- | api/requirements.txt | 1 |
3 files changed, 4 insertions, 0 deletions
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 9bf69b8f..8d0a283a 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 |
