Message ID | 20220525173411.612224-1-marcandre.lureau@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | gitlab-ci: add meson JUnit test result into report | expand |
On 25/05/2022 19.34, marcandre.lureau@redhat.com wrote: > From: Marc-André Lureau <marcandre.lureau@redhat.com> Could you please provide a patch description? (What's the benefit of this patch? Why is testlog.txt not sufficient?) Thanks, Thomas > Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> > --- > .gitlab-ci.d/buildtest-template.yml | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/.gitlab-ci.d/buildtest-template.yml b/.gitlab-ci.d/buildtest-template.yml > index dc6d67aacf..b381345dbc 100644 > --- a/.gitlab-ci.d/buildtest-template.yml > +++ b/.gitlab-ci.d/buildtest-template.yml > @@ -44,6 +44,8 @@ > expire_in: 7 days > paths: > - build/meson-logs/testlog.txt > + reports: > + junit: build/meson-logs/testlog.junit.xml > > .avocado_test_job_template: > extends: .common_test_job_template
Hi On Mon, May 30, 2022 at 8:32 AM Thomas Huth <thuth@redhat.com> wrote: > > On 25/05/2022 19.34, marcandre.lureau@redhat.com wrote: > > From: Marc-André Lureau <marcandre.lureau@redhat.com> > > Could you please provide a patch description? (What's the benefit of this > patch? Why is testlog.txt not sufficient?) It allows the gitlab UI to show the test results in different ways, see doc: https://docs.gitlab.com/ee/ci/unit_test_reports.html#how-it-works Currently, it only reports avocado test results (.avocado_test_job_template), ex from last run: https://gitlab.com/qemu-project/qemu/-/pipelines/550786617/test_report With this change, the qemu/meson tests are also covered. > > Thanks, > Thomas > > > > Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> > > --- > > .gitlab-ci.d/buildtest-template.yml | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/.gitlab-ci.d/buildtest-template.yml b/.gitlab-ci.d/buildtest-template.yml > > index dc6d67aacf..b381345dbc 100644 > > --- a/.gitlab-ci.d/buildtest-template.yml > > +++ b/.gitlab-ci.d/buildtest-template.yml > > @@ -44,6 +44,8 @@ > > expire_in: 7 days > > paths: > > - build/meson-logs/testlog.txt > > + reports: > > + junit: build/meson-logs/testlog.junit.xml > > > > .avocado_test_job_template: > > extends: .common_test_job_template >
diff --git a/.gitlab-ci.d/buildtest-template.yml b/.gitlab-ci.d/buildtest-template.yml index dc6d67aacf..b381345dbc 100644 --- a/.gitlab-ci.d/buildtest-template.yml +++ b/.gitlab-ci.d/buildtest-template.yml @@ -44,6 +44,8 @@ expire_in: 7 days paths: - build/meson-logs/testlog.txt + reports: + junit: build/meson-logs/testlog.junit.xml .avocado_test_job_template: extends: .common_test_job_template