From e5f563c9a176ead3702f549a49f302012f9c6803 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Mon, 14 Sep 2020 16:52:48 +0200 Subject: [PATCH] run-tests: use pytest and generate coverage report Use the more powerful pytest framework together with pytest-cov to generate coverage support. --- run-tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-tests.sh b/run-tests.sh index b2124a8..d68da9b 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -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"