all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard H Lee <ricardohenrylee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: calling ert from a script
Date: Wed, 17 Apr 2013 00:03:31 +0100	[thread overview]
Message-ID: <516DD8C3.8010304@gmail.com> (raw)

I'm using ert for unit testing currently.

I know you can call ert interactively to run all defined tests. When you 
do so tests pass and fail as expected.

I have a script that clears existing tests, reloads the file under test 
and the tests themselves and then runs the tests. The way I run the 
tests is by calling (ert t) . This is the same thing that is called when 
you call ert interactively.

However when I call (ert t) from a script, rather than passing and 
failing tests, it aborts at the first failure, not running any further 
tests. (And it returns with an eval error saying that the test failed.)

Can anybody tell me why this happens?



             reply	other threads:[~2013-04-16 23:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-16 23:03 Richard H Lee [this message]
     [not found] <mailman.24241.1366154251.855.help-gnu-emacs@gnu.org>
2013-04-17 14:52 ` calling ert from a script Lowell Gilbert

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=516DD8C3.8010304@gmail.com \
    --to=ricardohenrylee@gmail.com \
    --cc=help-gnu-emacs@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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.