From 98eb84cd26fe10953ee39af4eaf65f320303f005 Mon Sep 17 00:00:00 2001 From: mahendrapaipuri Date: Wed, 29 Sep 2021 15:20:31 +0200 Subject: [PATCH 1/2] Add junit report output to CI jobs --- reframe/frontend/ci.py | 1 + 1 file changed, 1 insertion(+) diff --git a/reframe/frontend/ci.py b/reframe/frontend/ci.py index 90d89b30e0..1e01ec932c 100644 --- a/reframe/frontend/ci.py +++ b/reframe/frontend/ci.py @@ -42,6 +42,7 @@ def rfm_command(testcase): f'-R' if recurse else '', f'--report-file={report_file}', f'--restore-session={restore_files}' if restore_files else '', + f'--report-junit={testcase.check.name}-report.xml', f'{"".join("-" + verbosity)}' if verbosity else '', '-n', f"'^{testcase.check.name}$'", '-r' ]) From 49f4cacaf912345f1ed0e8453ac8b611404ed182 Mon Sep 17 00:00:00 2001 From: mahendrapaipuri Date: Wed, 29 Sep 2021 15:28:21 +0200 Subject: [PATCH 2/2] Add a line in docs on the junit report in CI jobs --- docs/tutorial_tips_tricks.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/tutorial_tips_tricks.rst b/docs/tutorial_tips_tricks.rst index 8d47639dc5..bc0ca30c47 100644 --- a/docs/tutorial_tips_tricks.rst +++ b/docs/tutorial_tips_tricks.rst @@ -556,6 +556,7 @@ ReFrame will process them as usual, but instead of running the selected tests, i for running each test individually as a Gitlab job. We then pass the generated CI pipeline file to second phase as an artifact and we are done! If ``image`` keyword is defined in ``.gitlab-ci.yml``, the emitted pipeline will use the same image as the one defined in the parent pipeline. +Besides, each job in the generated pipeline will output a separate junit report which can be used to create GitLab badges. The following figure shows one part of the automatically generated pipeline for the test graph depicted `above <#fig-deps-complex>`__.