From: Stephen Berman <stephen.berman@gmx.net>
To: emacs-devel@gnu.org
Cc: Glenn Morris <rgm@gnu.org>
Subject: Re: master 941a2e7: todo-mode: don't assume an ordering of tests
Date: Tue, 30 May 2017 10:58:40 +0200 [thread overview]
Message-ID: <87vaoiafgf.fsf@rosalinde> (raw)
In-Reply-To: <20170530005057.4720C20ACA@vcs0.savannah.gnu.org> (Glenn Morris's message of "Mon, 29 May 2017 20:50:56 -0400 (EDT)")
On Mon, 29 May 2017 20:50:56 -0400 (EDT) rgm@gnu.org (Glenn Morris) wrote:
> branch: master
> commit 941a2e7347e3a0d393e67872e6151be8cc66d9a2
> Author: Glenn Morris <rgm@gnu.org>
> Commit: Glenn Morris <rgm@gnu.org>
>
> todo-mode: don't assume an ordering of tests
>
> * test/lisp/calendar/todo-mode-tests.el (todo-test-todo-quit02)
> (todo-test-item-highlighting): Avoid prompting for input file.
[...]
> @@ -93,6 +95,7 @@ current again."
> If the buffer made current by invoking todo-quit in a todo-mode
> buffer is buried by quit-window, the todo-mode buffer should not
> become current."
> + (todo-test-get-archive 2)
> (todo-show)
> (should (todo-test-is-current-buffer todo-test-file-1))
> (let ((dir (dired default-directory)))
> @@ -105,6 +108,7 @@ become current."
> (ert-deftest todo-test-item-highlighting () ; bug#27133
> "Test whether `todo-toggle-item-highlighting' highlights whole item.
> In particular, all lines of a multiline item should be highlighted."
> + (todo-test-get-archive 2)
> (todo-show)
> (todo-jump-to-category nil "testcat1") ; For test rerun.
> (todo-toggle-item-highlighting)
When I start emacs with -Q, load the test file, and then either run all
tests with `M-x ert RET t RET', or each individually with `M-x ert RET
"todo-test-todo-quit02" RET' etc. in any order, also with reruns, all
tests pass and I get no prompt for a file. Same when invoking
`emacs -batch -l ert -l /path/to/test/lisp/calendar/todo-mode-tests.el -f
ert-run-tests-batch-and-exit' from the shell.
The tests todo-test-todo-quit02 and todo-test-item-highlighting
shouldn't have any need to display an archive buffer. How did you run
the tests such that you got prompted for a file and what was the prompt?
Steve Berman
next parent reply other threads:[~2017-05-30 8:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20170530005055.14646.47570@vcs0.savannah.gnu.org>
[not found] ` <20170530005057.4720C20ACA@vcs0.savannah.gnu.org>
2017-05-30 8:58 ` Stephen Berman [this message]
2017-05-30 15:35 ` master 941a2e7: todo-mode: don't assume an ordering of tests Glenn Morris
2017-05-30 19:52 ` Stephen Berman
2017-05-31 0:48 ` Glenn Morris
2017-05-31 14:18 ` Stephen Berman
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.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vaoiafgf.fsf@rosalinde \
--to=stephen.berman@gmx.net \
--cc=emacs-devel@gnu.org \
--cc=rgm@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.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).