run-tests: use pytest and generate coverage report

Use the more powerful pytest framework together with pytest-cov
to generate coverage support.
This commit is contained in:
Christian Kellner 2020-09-14 16:52:48 +02:00
parent 0efe8941c6
commit e5f563c9a1

View file

@ -10,5 +10,5 @@ pushd test
podman build -t koji.test -f Dockerfile .
popd
run_test "python3 -m unittest discover -v test/unit/"
run_test "pytest -v --cov-report=term --cov=osbuild test/unit/"
run_test "pylint test/**/*.py"