X-Git-Url: https://code.delx.au/gnu-emacs-elpa/blobdiff_plain/30ba44404311276d2650664001c5261e52d3008f..04f3d4bb44d7ef30e705b53f3d15e3279ac0d230:/packages/test-simple/README.md diff --git a/packages/test-simple/README.md b/packages/test-simple/README.md index 7a473b095..431e054a4 100644 --- a/packages/test-simple/README.md +++ b/packages/test-simple/README.md @@ -67,5 +67,20 @@ Now let's try from a command line: ...... 0 failures in 6 assertions (0.000723 seconds) +You can run noninteractive tests inside Emacs by `test-simple-run`. +Add the following at a test file: + + ;;;; (test-simple-run "emacs -batch -L %s -l %s" (file-name-directory (locate-library "test-simple.elc")) buffer-file-name) + +Press C-x C-e at the `test-simple-run` line to run this test file. +Then press C-x C-z, which is customizable by `test-simple-runner-key`, to run it more. +If you have installed `bpr` package, use it by default because it only pops up window when the running program exits abnormally. + +`test-simple-run` can be called interactively. +In this case, the command line is set above as the simplest case. +But you run test with dependency, you must use the sexp comment form. + + ;;;; (test-simple-run "emacs -batch -L %s -L %s -l %s" (file-name-directory (locate-library "test-simple.elc")) (file-name-directory (locate-library "foo")) buffer-file-name) + *Author:* Rocky Bernstein
[![endorse](https://api.coderwall.com/rocky/endorsecount.png)](https://coderwall.com/rocky)