From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: [patch, ERT] emacs -q friendly interactive instructions Date: Wed, 23 Jul 2014 00:03:39 +0200 Message-ID: <87d2cxjbk4.fsf@gmx.us> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58077) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9iAC-0000zl-LC for emacs-orgmode@gnu.org; Tue, 22 Jul 2014 18:04:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X9iA6-0004mT-CA for emacs-orgmode@gnu.org; Tue, 22 Jul 2014 18:04:00 -0400 Received: from plane.gmane.org ([80.91.229.3]:59636) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9iA6-0004mM-4F for emacs-orgmode@gnu.org; Tue, 22 Jul 2014 18:03:54 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1X9iA5-0002DU-GU for emacs-orgmode@gnu.org; Wed, 23 Jul 2014 00:03:53 +0200 Received: from e179077141.adsl.alicedsl.de ([85.179.77.141]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Jul 2014 00:03:53 +0200 Received: from rasmus by e179077141.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Jul 2014 00:03:53 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Hi, Here's a patch to the testing/README-documentation on the interactive part. I found that I had to do a couple of extra steps to run tests interactively from emacs -q. Thanks, Rasmus -- Hooray! --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-testing-README-Changes-to-Interactive-testing.patch >From 1368f47b72e4a7f90888e5f3e6860afbee438cec Mon Sep 17 00:00:00 2001 From: Rasmus Date: Fri, 18 Jul 2014 17:19:01 +0200 Subject: [PATCH] testing/README: Changes to "Interactive testing" * testing/README: Changes in "Interactive testing" instructions. --- testing/README | 20 ++++++++++++++------ 1 file 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 -- 2.0.2 --=-=-=--