From 60421cfe26582aec798c11496c77ac6d6b513804 Mon Sep 17 00:00:00 2001 From: Markus Meissner Date: Tue, 14 Nov 2023 18:16:14 +0100 Subject: [PATCH] add test reports --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 327d9a3d..d0b5f5f0 100644 --- a/Makefile +++ b/Makefile @@ -132,7 +132,7 @@ build-CI-test: CI-test: sudo docker run -it --rm -v $(PWD):/app nitro-python-ci make CI VENV=venv-ci -.PHONY: secrets-test-all secrets-test secrets-test-report +.PHONY: secrets-test-all secrets-test secrets-test-report secrets-test-report-CI LOG=info TESTADD= TESTPARAM=-x -s -o log_cli=true -o log_cli_level=$(LOG) -W ignore::DeprecationWarning $(TESTADD) @@ -147,7 +147,13 @@ REPORT=report.html secrets-test-report: ./venv/bin/pytest -v pynitrokey/test_secrets_app.py --durations=0 -o log_cli=false -o log_cli_level=debug -W ignore::DeprecationWarning --template=html1/index.html --report $(REPORT) @echo "Report written to $(REPORT)" - xdg-open $(REPORT) + + +REPORT=report.html +secrets-test-report-CI: + ./venv/bin/pytest -v pynitrokey/test_secrets_app.py --durations=0 -m "not slow" -o log_cli=false -o log_cli_level=debug -W ignore::DeprecationWarning --template=html1/index.html --report $(REPORT) --junitxml=report-junit.xml $(TESTADD) + @echo "Report written to $(REPORT)" + CORPUS_PATH=$(shell mktemp -d) secrets-test-generate-corpus: