From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Masatake YAMATO Newsgroups: gmane.emacs.devel Subject: Re: unit test framework Date: Thu, 18 Mar 2010 20:25:21 +0900 (JST) Organization: Red Hat Japan, Inc. Message-ID: <20100318.202521.329767484983295922.yamato@redhat.com> References: <20100318.163911.560917315840337376.yamato@redhat.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1268911468 10760 80.91.229.12 (18 Mar 2010 11:24:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 18 Mar 2010 11:24:28 +0000 (UTC) Cc: emacs-devel@gnu.org To: sdl.web@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 18 12:24:22 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NsDps-0003mp-Et for ged-emacs-devel@m.gmane.org; Thu, 18 Mar 2010 12:24:20 +0100 Original-Received: from localhost ([127.0.0.1]:46098 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NsDpr-0006w1-4M for ged-emacs-devel@m.gmane.org; Thu, 18 Mar 2010 07:24:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NsDoF-00061K-UZ for emacs-devel@gnu.org; Thu, 18 Mar 2010 07:22:40 -0400 Original-Received: from [140.186.70.92] (port=41664 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NsDoB-0005yC-Tr for emacs-devel@gnu.org; Thu, 18 Mar 2010 07:22:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NsDoA-0005dW-9v for emacs-devel@gnu.org; Thu, 18 Mar 2010 07:22:35 -0400 Original-Received: from mx1.redhat.com ([209.132.183.28]:57654) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NsDoA-0005dF-2n for emacs-devel@gnu.org; Thu, 18 Mar 2010 07:22:34 -0400 Original-Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o2IBMVcL031952 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 18 Mar 2010 07:22:31 -0400 Original-Received: from localhost (beach.nrt.redhat.com [10.64.200.71]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o2IBMUqr022245; Thu, 18 Mar 2010 07:22:30 -0400 In-Reply-To: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.17 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:122156 Archived-At: > On 2010-03-18 09:31 +0000, Lennart Borgman wrote: >> On Thu, Mar 18, 2010 at 8:39 AM, Masatake YAMATO = 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.= >>> >>> =A0 =A0 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 ow= n > .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 wh= y > you use ert.el? Thanks. I'm using it because it supports a use case, testing an elisp with "ema= cs --batch". The emacs process run for unit testing can tell the test result via exi= t status; 0 is for successful, 1 is for failure. With ert.el it is possible to in= tegrate = running unit test to "make check". If you are interested in, see the new docuemnt for ``ert-run-tests-batc= h'' in http://github.com/masatake/ert/commit/5f1bc45c5c54e1f95e9e8ba787f3f6= 6b33ddc583 Masatake YAMATO