summaryrefslogtreecommitdiff
path: root/doc/misc/ert.texi
diff options
context:
space:
mode:
authorShakthi Kannan <shakthimaan@gmail.com>2015-12-26 13:05:06 +0200
committerEli Zaretskii <eliz@gnu.org>2015-12-26 13:05:06 +0200
commit406d132244867fe079580fa003c9dac88063283e (patch)
tree3ac193ca9979df390832e2e611187f08a6d04079 /doc/misc/ert.texi
parent23c3caf6025f1cbe37781ceb359fac2c67268f45 (diff)
downloademacs-406d132244867fe079580fa003c9dac88063283e.tar.gz
emacs-406d132244867fe079580fa003c9dac88063283e.tar.bz2
emacs-406d132244867fe079580fa003c9dac88063283e.zip
Document 'ert-summarize-tests-batch-and-exit'
* doc/misc/ert.texi (Running Tests in Batch Mode): Document 'ert-summarize-tests-batch-and-exit'.
Diffstat (limited to 'doc/misc/ert.texi')
-rw-r--r--doc/misc/ert.texi9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/misc/ert.texi b/doc/misc/ert.texi
index 35d315c64b8..c2363237b97 100644
--- a/doc/misc/ert.texi
+++ b/doc/misc/ert.texi
@@ -283,6 +283,15 @@ with a zero exit status if all tests passed, or nonzero if any tests
failed or if anything else went wrong. It will also print progress
messages and error diagnostics to standard output.
+You can also redirect the above output to a log file, say
+@file{output.log}, and use the
+@code{ert-summarize-tests-batch-and-exit} function to produce a neat
+summary as shown below:
+
+@example
+emacs -batch -l ert -f ert-summarize-tests-batch-and-exit output.log
+@end example
+
If ERT is not part of your Emacs distribution, you may need to use
@code{-L /path/to/ert/} so that Emacs can find it. You may need
additional @code{-L} flags to ensure that @code{my-tests.el} and all the