diff options
author | Rasmus <rasmus@gmx.us> | 2014-07-18 17:19:01 +0200 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2014-07-27 14:14:28 +0200 |
commit | 46a4590524c823b08529b5fb842b665965ef5acd (patch) | |
tree | df5173a55a7814849d88b19889c82933f64a5ad2 | |
parent | 16e21ae1f7cb379eab87cc7c8c674d89633ae9a3 (diff) | |
download | org-mode-46a4590524c823b08529b5fb842b665965ef5acd.tar.gz |
testing/README: Changes to "Interactive testing"
* testing/README: Changes in "Interactive testing" instructions.
-rw-r--r-- | testing/README | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/testing/README b/testing/README index c7e352b..34f6fcd 100644 --- a/testing/README +++ b/testing/README @@ -47,18 +47,26 @@ load and run the test suite with the following commands. (require 'org-test) #+END_SRC -2) Disable babel evaluation confirmation +2) Load required Babel languages #+BEGIN_SRC emacs-lisp - (setq org-confirm-babel-evaluate) + (org-babel-do-load-languages + 'org-babel-load-languages + (and + (mapc (lambda (lang) (add-to-list 'org-babel-load-languages (cons lang t))) + '(emacs-lisp shell org)) + org-babel-load-languages)) #+END_SRC -3) Then run the test suite, +3) Then run the test suite. Babel evaluation confirmation is disabled + and ~C-c C-c~ is enabled while running the tests. #+BEGIN_SRC emacs-lisp - (org-test-run-all-tests) + (let (org-babel-no-eval-on-ctrl-c-ctrl-c + org-confirm-babel-evaluate) + (org-test-run-all-tests)) #+END_SRC - or when a test fails run it interactively and investigate the - problem in the ERT results buffer. + When a test fails, run it interactively and investigate the problem + in the ERT results buffer. How to run one test: Use this as a demo example of a failing test |