emacs-devel
[Top][All Lists]
Advanced

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

Re: unit test framework


From: Masatake YAMATO
Subject: Re: unit test framework
Date: Thu, 18 Mar 2010 20:25:21 +0900 (JST)

> On 2010-03-18 09:31 +0000, Lennart Borgman wrote:
>> On Thu, Mar 18, 2010 at 8:39 AM, Masatake YAMATO <address@hidden> wrote:
>>> Hi,
>>>
>>> Do you have a plan to include an elisp library for unit
>>> testing in Emacs-24?
>>>
>>> I've tried some and I'm using ert.el written by Christian M. Ohler.
>>>
>>>     http://github.com/masatake/ert/blob/master/ert.el
>>
>>
>> I am using that in nXhtml with some additions to test fontifications
>> and commands.
> 
> I have been thinking about using a unit test framework even for my own
> .emacs which has grown to a few thousand lines. But there are so many of
> them available and I don't know which one is good. Could you share why
> you use ert.el? Thanks.

I'm using it because it supports a use case, testing an elisp with "emacs 
--batch".
The emacs process run for unit testing can tell the test result via exit status;
0 is for successful, 1 is for failure. With ert.el it is possible to integrate 
running unit test to "make check".

If you are interested in, see the new docuemnt for ``ert-run-tests-batch'' in

   
http://github.com/masatake/ert/commit/5f1bc45c5c54e1f95e9e8ba787f3f66b33ddc583

Masatake YAMATO





reply via email to

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