summaryrefslogtreecommitdiff
path: root/test/README
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 /test/README
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 'test/README')
-rw-r--r--test/README3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/README b/test/README
index 4d447c9bf15..2bd84b5f9b3 100644
--- a/test/README
+++ b/test/README
@@ -114,6 +114,9 @@ mode--only the names of the failed tests are listed. If the
$EMACS_TEST_VERBOSE environment variable is set, the failure summaries
will also include the data from the failing test.
+If the $EMACS_TEST_JUNIT_REPORT environment variable is set to a file
+name, a JUnit test report is generated under this name.
+
Some of the tests require a remote temporary directory
(autorevert-tests.el, filenotify-tests.el, shadowfile-tests.el and
tramp-tests.el). Per default, a mock-up connection method is used