summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Wahl <marcowahlsoft@gmail.com>2017-12-28 15:35:19 +0100
committerMarco Wahl <marcowahlsoft@gmail.com>2017-12-28 15:35:19 +0100
commitab6135779170b28ed9c968da0120a5e2e8e64890 (patch)
treed4bec41e693c26613ffa17f049fef75872e93ad4
parent401890986cf7e4a08c76be4c291b45278c2ac89b (diff)
downloadorg-mode-ab6135779170b28ed9c968da0120a5e2e8e64890.tar.gz
testing/README Document use of regexp filter for testing
-rw-r--r--testing/README29
1 files changed, 26 insertions, 3 deletions
diff --git a/testing/README b/testing/README
index 2135990..ae32d91 100644
--- a/testing/README
+++ b/testing/README
@@ -53,15 +53,38 @@ See ../mk/default.mk for details.
The 'dirty' targets are for recompiling without cleaning and
rebuilding everything. This usually speeds up the recompilation
-considerably.
+considerably. Note that this speed up comes to the price of possibly
+weird errors due to the unclean build.
-The 'dirty' target is called test-dirty.
+The dirty target for testing is called ~test-dirty~.
#+BEGIN_SRC sh :dir (expand-file-name "..") :results silent
make test-dirty
#+END_SRC
-Note that the outcome may /not/ be in perfect shape.
+** Select tests by regexp
+
+Variable ~BTEST_RE~ can be set to limit the tests which are performed.
+~BTEST_RE~ is interpreted as regexp.
+
+Example:
+
+#+begin_src shell
+make BTEST_RE='test-.*-inlinetask' test-dirty
+#+end_src
+
+yields
+
+#+begin_example
+...
+selected tests: test-.*-inlinetask
+Running 2 tests (2017-12-28 15:04:45+0100)
+ passed 1/2 test-org-export/handle-inlinetasks
+ passed 2/2 test-org-inlinetask/goto-end
+
+Ran 2 tests, 2 results as expected (2017-12-28 15:04:45+0100)
+...
+#+end_example
* Interactive testing from within Emacs