diff --git a/.coveragerc b/.coveragerc deleted file mode 100644 index bab3745278..0000000000 --- a/.coveragerc +++ /dev/null @@ -1,16 +0,0 @@ -[run] -omit = - */tests/* - demo/* - docker/* - docs/* - scripts/* -data_file = test-reports/.coverage - -[report] -exclude_lines = - pragma: no cover - @abstract - -[xml] -output = test-reports/coverage.xml diff --git a/setup.cfg b/setup.cfg index 43298ba02d..2c4d919adf 100644 --- a/setup.cfg +++ b/setup.cfg @@ -2,7 +2,7 @@ testpaths = aries_cloudagent addopts = --quiet --junitxml=./test-reports/junit.xml - --cov-config .coveragerc --cov=aries_cloudagent --cov-report term-missing --cov-report xml + --cov-config .coveragerc --cov=aries_cloudagent --cov-report term --cov-report xml --flake8 markers = indy: Tests specifically relating to Hyperledger Indy support @@ -15,3 +15,23 @@ exclude = */tests/** extend_ignore = D202, W503 per_file_ignores = */__init__.py:D104 + +[coverage:run] +omit = + */tests/* + demo/* + docker/* + docs/* + scripts/* +data_file = test-reports/.coverage + +[coverage:report] +exclude_lines = + pragma: no cover + @abstract +precision = 2 +skip_covered = True +show_missing = True + +[coverage:xml] +output = test-reports/coverage.xml