diff options
| author | Stefan Kangas | 2019-09-21 14:58:08 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2019-09-28 18:04:30 +0200 |
| commit | cc7f2fb0cc1c077d0648e48d0d9efb713c375abe (patch) | |
| tree | c334a573ea79296b67b267e88ff877f592202ffa | |
| parent | a444bb78ad5d1a06f8d5b043e16941fdcc24de16 (diff) | |
| download | emacs-cc7f2fb0cc1c077d0648e48d0d9efb713c375abe.tar.gz emacs-cc7f2fb0cc1c077d0648e48d0d9efb713c375abe.zip | |
Document ert test selectors in batch mode (Bug#37476)
* doc/misc/ert.texi (Running Tests in Batch Mode): Document test
selectors.
| -rw-r--r-- | doc/misc/ert.texi | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/doc/misc/ert.texi b/doc/misc/ert.texi index 2dbba095d61..889216cbefc 100644 --- a/doc/misc/ert.texi +++ b/doc/misc/ert.texi | |||
| @@ -337,10 +337,14 @@ emacs -batch -l ert -l my-tests.el \ | |||
| 337 | 337 | ||
| 338 | In quiet mode ERT prints only unexpected results and summary. | 338 | In quiet mode ERT prints only unexpected results and summary. |
| 339 | 339 | ||
| 340 | If ERT is not part of your Emacs distribution, you may need to use | 340 | You can specify selectors to only run a subset of your tests |
| 341 | @code{-L /path/to/ert/} so that Emacs can find it. You may need | 341 | (@pxref{Test Selectors}). For example, the following would run all |
| 342 | additional @code{-L} flags to ensure that @code{my-tests.el} and all the | 342 | tests where the name of the test matches the string ``to-match''. |
| 343 | files that it requires are on your @code{load-path}. | 343 | |
| 344 | @example | ||
| 345 | emacs -batch -l ert -l my-tests.el \ | ||
| 346 | -eval '(ert-run-tests-batch-and-exit "to-match")' | ||
| 347 | @end example | ||
| 344 | 348 | ||
| 345 | 349 | ||
| 346 | @node Test Selectors | 350 | @node Test Selectors |