diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 94a194a..fefd4a3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,7 +16,15 @@ test-job: - env | sort - ENV_ID=${CI_PIPELINE_ID} docker compose up -d script: - - ENV_ID=${CI_PIPELINE_ID} docker compose exec -ti debian pytest -svv --lg-env config/qemu.yaml -m 'not openvpn' + - ENV_ID=${CI_PIPELINE_ID} docker compose exec -ti debian pytest -svv --lg-env config/qemu.yaml --junit-xml=/tmp/result.xml -m 'not openvpn' + - ENV_ID=${CI_PIPELINE_ID} docker compose cp debian:/tmp/result.xml result.xml after_script: - ENV_ID=${CI_PIPELINE_ID} docker compose rm -sf - docker network prune -f + artifacts: + when: always + paths: + - result.xml + reports: + junit: result.xml + diff --git a/pytest.ini b/pytest.ini index 51b20db..57155a5 100644 --- a/pytest.ini +++ b/pytest.ini @@ -9,5 +9,9 @@ pythonpath = util log_cli = true log_cli_level = INFO +junit_suite_name = "Labgrid QEMU Sample" +junit_log_passing_tests = True +junit_logging = all + markers = openvpn: Tests OpenVPN related functionality \ No newline at end of file