[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master cc7f2fb: Document ert test selectors in batch mode
From: |
Stefan Kangas |
Subject: |
[Emacs-diffs] master cc7f2fb: Document ert test selectors in batch mode (Bug#37476) |
Date: |
Sat, 28 Sep 2019 12:06:32 -0400 (EDT) |
branch: master
commit cc7f2fb0cc1c077d0648e48d0d9efb713c375abe
Author: Stefan Kangas <address@hidden>
Commit: Stefan Kangas <address@hidden>
Document ert test selectors in batch mode (Bug#37476)
* doc/misc/ert.texi (Running Tests in Batch Mode): Document test
selectors.
---
doc/misc/ert.texi | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/doc/misc/ert.texi b/doc/misc/ert.texi
index 2dbba09..889216c 100644
--- a/doc/misc/ert.texi
+++ b/doc/misc/ert.texi
@@ -337,10 +337,14 @@ emacs -batch -l ert -l my-tests.el \
In quiet mode ERT prints only unexpected results and summary.
-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
-files that it requires are on your @code{load-path}.
+You can specify selectors to only run a subset of your tests
+(@pxref{Test Selectors}). For example, the following would run all
+tests where the name of the test matches the string ``to-match''.
+
+@example
+emacs -batch -l ert -l my-tests.el \
+ -eval '(ert-run-tests-batch-and-exit "to-match")'
+@end example
@node Test Selectors
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master cc7f2fb: Document ert test selectors in batch mode (Bug#37476),
Stefan Kangas <=