[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Test cases and Emacs bugs

From: Lennart Borgman (gmail)
Subject: Test cases and Emacs bugs
Date: Fri, 08 Aug 2008 03:22:54 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20071031 Thunderbird/ Mnenhy/

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:


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 via email to

[Prev in Thread] Current Thread [Next in Thread]