all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: Emacs Devel <emacs-devel@gnu.org>,
	 Christian Ohler <ohler+emacs@fastmail.net>,
	Phil Hagelberg <phil@hagelb.org>
Subject: Test cases and Emacs bugs
Date: Fri, 08 Aug 2008 03:22:54 +0200	[thread overview]
Message-ID: <489B9FEE.9070309@gmail.com> (raw)

With some help of Christian I have been writing some test cases using 
ert.el. I have found ert.el easy to use.

I know that Christian and Phil wants to improve it more. (And I have 
some suggestions based on the few tests I have written so far.) I think 
that here is a good chance to get a unit test framework into Emacs.

Most of the few tests so far are for nXhtml, but I just wrote a test for 
how scrolling is done when `scroll-conservatively' is 1. I wondered if 
it was possible to test this. It seems so.

(The result of this test actually shows that Emacs sometimes scrolls 
more than 1 line when calling next-line repeatedly. Is this expected or 
is it a bug?)

If someone is interested in looking at this it is currently all in 
nXhtml package (otherwise I would not have time to test). The test above 
is in the latest beta which is here:

   http://ourcomments.org/Emacs/DL/elisp/nxhtml/beta/

Maybe this can be used when reporting bugs? Either the reporter or 
someone who tries to fix it could write a test for the bug.




                 reply	other threads:[~2008-08-08  1:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=489B9FEE.9070309@gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=ohler+emacs@fastmail.net \
    --cc=phil@hagelb.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.