From 3ec6ed3c1fd708917aa4237f84ed161f7eef7a34 Mon Sep 17 00:00:00 2001 From: Lukas Juhrich Date: Thu, 10 Nov 2022 16:01:42 +0100 Subject: [PATCH] [tests] Fix inclusions and omissions in `.coveragerc` Unfortunnately, in pre-6.6, the following issues affect the results: - nedbat/coveragepy#1407 - nedbat/coveragepy#1486 --- .coveragerc | 20 +++++++++----------- requirements.dev.txt | 5 +++-- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/.coveragerc b/.coveragerc index a9588019d..fd9123cc5 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,16 +1,14 @@ [run] +source = + pycroft + ldap_sync + hades_logs + web omit = - */lib/python2.6/* - */pyshared/* - tests/* - */alembic/versions/* - web/* + tests + **/alembic/** + .pycharm_helpers [report] omit = - */lib/python2.6/* - */pyshared/* - tests/* - */alembic/versions/* - web/* - + **/alembic/** diff --git a/requirements.dev.txt b/requirements.dev.txt index d09b12f51..da68d5852 100644 --- a/requirements.dev.txt +++ b/requirements.dev.txt @@ -1,9 +1,10 @@ -coverage~=5.3.1 factory-boy~=3.2.0 pydot~=1.4.1 pytest~=7.0.0 pytest-timeout~=2.1.0 -pytest-cov~=3.0.0 +pytest-cov~=4.0.0 +# required for pycharm „run with coverage“ reporting +coverage~=6.5.0 git+https://github.com/lukasjuhrich/sqlalchemy_schemadisplay.git@master#egg=sqlalchemy-schemadisplay sphinx~=5.1.1 sphinx-autobuild~=2021.3.14