From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jeremiah Dodds Newsgroups: gmane.emacs.help Subject: Re: What tools and references do you use for Emacs Lisp unit testing? Date: Fri, 06 Apr 2012 01:04:39 -0400 Message-ID: <87mx6pqwm0.fsf@destructor.i-did-not-set--mail-host-address--so-tickle-me> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1333688766 16376 80.91.229.3 (6 Apr 2012 05:06:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 6 Apr 2012 05:06:06 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 06 07:06:05 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SG1N4-0007WU-Vb for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Apr 2012 07:06:03 +0200 Original-Received: from localhost ([::1]:40783 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SG1N3-0000tE-B9 for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Apr 2012 01:06:01 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58738) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SG1My-0000sc-BV for help-gnu-emacs@gnu.org; Fri, 06 Apr 2012 01:05:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SG1Mv-0004W4-Hy for help-gnu-emacs@gnu.org; Fri, 06 Apr 2012 01:05:55 -0400 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:51221) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SG1Mv-0004Vq-98 for help-gnu-emacs@gnu.org; Fri, 06 Apr 2012 01:05:53 -0400 Original-Received: by iajr24 with SMTP id r24so3371979iaj.0 for ; Thu, 05 Apr 2012 22:05:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=+Xz7GzIZLMajrTGkg9ngRz4Saofz1Rex7UtTFDy5By4=; b=FsjFJZyfD4YT3CVNzaajgiZm1GsM5ipzX6b6BuFaf85KLSx7uWe9aLTU2R2Wf2phl5 TyvVhL5txWrMEcqiozOX9uH82f2V+QN4K21cLpEvkUkR/M/wVe2edlsBGRn2Bf38J7sW xS55feufQvtULrZwuy77omnoPnsUu6dlttZwHtjVAjqDrjLXswhaGUQLsgUk+UuIOlvI gIGUjudgFSfnqw3wsWxMUWHzBA9xp9SIcV3pfef1/zaNsykHITVmdop4+m4C+1odcPJk FZiGcoWpBU+8qH/L8ZOdhoWnw1eH4+6bDKgw6DRE/AVlqSI7klPXRayZP6khtFFHD8yP ALaQ== Original-Received: by 10.42.151.133 with SMTP id e5mr3365355icw.7.1333688748871; Thu, 05 Apr 2012 22:05:48 -0700 (PDT) Original-Received: from destructor (cpe-24-93-119-72.columbus.res.rr.com. [24.93.119.72]) by mx.google.com with ESMTPS id b11sm3717676igq.7.2012.04.05.22.05.46 (version=SSLv3 cipher=OTHER); Thu, 05 Apr 2012 22:05:47 -0700 (PDT) In-Reply-To: (Glenn Morris's message of "Tue, 03 Apr 2012 18:10:59 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.95 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.210.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84352 Archived-At: Glenn Morris writes: > Matt McClure wrote: > >> I've written a bit of Emacs Lisp, and I've written unit tests in other >> languages. From the list of tools on http://emacswiki.org/emacs/UnitTesting, >> ert.el and el-expectations.el look most promising to me. What tools are >> others using for unit testing and TDD in Emacs Lisp? What are good examples >> of packages using each? > > Well, ERT is included in Emacs (from 24.1 onwards), together with a nice > manual, and is used for the (so far, somewhat sparse) tests in the > test/automated directory in the Emacs repository. Here's a +1 for ERT -- I've used it a bit, and think it's a fine unit testing library for elisp, it's more or less what you expect it to be.