summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorMichael Albinus <michael.albinus@gmx.de>2021-12-13 16:09:56 +0100
committerMichael Albinus <michael.albinus@gmx.de>2021-12-13 16:09:56 +0100
commitb30b33ed9b3cdacecebef73ad1131f03c635de7a (patch)
tree51f74825579561f8267b0ba7d0b885dcd88378cf /etc
parentc1476afb99fbba316832c12e584a633684966c09 (diff)
downloademacs-b30b33ed9b3cdacecebef73ad1131f03c635de7a.tar.gz
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.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS7
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index b55b30665be..8d83b2a7e36 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -163,6 +163,12 @@ the previous definition to be discarded, which was probably not
intended when this occurs in batch mode. To remedy the error, rename
tests so that they all have unique names.
++++
+*** ERT can generate JUnit test reports.
+When environment variable 'EMACS_TEST_JUNIT_REPORT' is set, ERT
+generates a JUnit test report under this file name. This is useful
+for Emacs integration into CI/CD test environments.
+
** Emoji
+++
@@ -1143,6 +1149,7 @@ This variable is bound to t during the preparation of a "*Help*" buffer.
** 'date-to-time' now assumes earliest values if its argument lacks
month, day, or time. For example, (date-to-time "2021-12-04") now
assumes a time of 00:00 instead of signaling an error.
+
* Changes in Emacs 29.1 on Non-Free Operating Systems