From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: [patch, ERT] emacs -q friendly interactive instructions
Date: Wed, 23 Jul 2014 00:03:39 +0200 [thread overview]
Message-ID: <87d2cxjbk4.fsf@gmx.us> (raw)
[-- Attachment #1: Type: text/plain, Size: 202 bytes --]
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!
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-testing-README-Changes-to-Interactive-testing.patch --]
[-- Type: text/x-diff, Size: 1645 bytes --]
From 1368f47b72e4a7f90888e5f3e6860afbee438cec Mon Sep 17 00:00:00 2001
From: Rasmus <rasmus@gmx.us>
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
next reply other threads:[~2014-07-22 22:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-22 22:03 Rasmus [this message]
2014-07-27 12:14 ` [patch, ERT] emacs -q friendly interactive instructions Bastien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d2cxjbk4.fsf@gmx.us \
--to=rasmus@gmx.us \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).