]> git.eshelyaron.com Git - emacs.git/commit
ERT can generate JUnit test reports
authorMichael Albinus <michael.albinus@gmx.de>
Mon, 13 Dec 2021 15:09:56 +0000 (16:09 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Mon, 13 Dec 2021 15:09:56 +0000 (16:09 +0100)
commitb30b33ed9b3cdacecebef73ad1131f03c635de7a
tree51f74825579561f8267b0ba7d0b885dcd88378cf
parentc1476afb99fbba316832c12e584a633684966c09
ERT can generate JUnit test reports

* .gitignore: Add test/**/*.xml.

* admin/notes/emba: Mention JUnit test report.

* etc/NEWS: ERT can generate JUnit test reports.

* lisp/emacs-lisp/ert.el (xml-escape-string): Autoload.
(ert-write-junit-test-report)
(ert-write-junit-test-summary-report): New defuns.
(ert-run-tests-batch, ert-summarize-tests-batch-and-exit): Call them.

* test/Makefile.in (clean): Remove *.xml.

* test/README: Mention $EMACS_TEST_JUNIT_REPORT environment variable.

* test/infra/Makefile.in ($(FILE)): Generate header commentary.
(clean): Remove.

* test/infra/gitlab-ci.yml (variables): Set EMACS_TEST_JUNIT_REPORT.
(.job-template): Use it in script and after_script.
(.build-template, .gnustep-template, .filenotify-gio-template)
(.native-comp-template): Adapt rules.
(.test-template): Trigger JUnit test report.

* test/infra/test-jobs.yml: Regenerate.
.gitignore
admin/notes/emba
etc/NEWS
lisp/emacs-lisp/ert.el
test/Makefile.in
test/README
test/infra/Makefile.in
test/infra/gitlab-ci.yml
test/infra/test-jobs.yml