]> code.delx.au - gnu-emacs-elpa/blobdiff - packages/test-simple/README.md
Version 1.2.0 Sync with github
[gnu-emacs-elpa] / packages / test-simple / README.md
index 7a473b095e5700f6d667a8ef0baf6b634a8b3d5c..431e054a43547a0ce5de0230e43d3b80c3f9bd46 100644 (file)
@@ -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 <rocky@gnu.org> <br>
 [![endorse](https://api.coderwall.com/rocky/endorsecount.png)](https://coderwall.com/rocky)