all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christian Ohler <ohler+emacs@fastmail.net>
To: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: ert.el --- Emacs Lisp Regression Testing
Date: Sat, 05 Jan 2008 12:32:45 +0100	[thread overview]
Message-ID: <477F6ADD.2060003@fastmail.net> (raw)
In-Reply-To: <477829B9.1070406@gmail.com>

Lennart Borgman (gmail), 2007-12-31:

> I will try to test it ;-)

Please do so -- perhaps by writing a few test cases for Emacs ;-)


> One thing that might be handy is something that runs selected entries in 
> a new instance of Emacs, starting from either "emacs" or "emacs -Q". I 
> think that is one of the most common things I do when I am testing.

ERT currently allows you to run your tests in a fresh emacs by running

     emacs -Q --batch --load my-tests.el --eval '(ert-run-tests-batch t)'

in a terminal (or possibly under M-x compile, but I haven't tried that).

However, that would be an edit-compile-run development cycle.  I am much 
more productive programming and testing interactively in one single 
Emacs instance.

I see two main reasons for running tests in a separate Emacs: For 
testing without customizations (emacs -Q) or other Emacs versions, and 
for long-running test suites that you don't want to block your main 
Emacs instance with.  So far, the above method was sufficient for me in 
those situations (because tests that have already succeeded in my Emacs 
rarely fail in a separate one, so I rarely missed ERT's interactive 
debugging facilities).

Maybe IELM could be used to implement a convenient interface for running 
an inferior Emacs that runs the tests (which could, in turn, involve 
running another nested Emacs in M-x term).  This even sounds like an 
interesting project to implement.  However, to get started building test 
suites for Emacs or Elisp packages, the current options are probably 
sufficient.

Christian.

  reply	other threads:[~2008-01-05 11:32 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-30 23:00 ert.el --- Emacs Lisp Regression Testing Christian Ohler
2007-12-30 23:28 ` Lennart Borgman (gmail)
2008-01-05 11:32   ` Christian Ohler [this message]
2007-12-31 14:42 ` Richard Stallman
2008-01-05 11:32   ` Christian Ohler
2008-01-05 13:06     ` Eli Zaretskii
2008-01-06  8:10       ` Richard Stallman
2008-01-06 19:46         ` Eli Zaretskii
2008-01-07 11:31           ` Richard Stallman
2008-01-07 13:00             ` Mike Mattie
2008-01-03 18:48 ` Phil Hagelberg
2008-01-05 11:32   ` Christian Ohler

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=477F6ADD.2060003@fastmail.net \
    --to=ohler+emacs@fastmail.net \
    --cc=emacs-devel@gnu.org \
    --cc=lennart.borgman@gmail.com \
    /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.