From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: unit test framework Date: Sat, 12 Jun 2010 15:48:35 +0200 Message-ID: References: <20100318.163911.560917315840337376.yamato@redhat.com> <4C1323F5.80301@fastmail.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1276350547 631 80.91.229.12 (12 Jun 2010 13:49:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 12 Jun 2010 13:49:07 +0000 (UTC) Cc: Nikolaj Schumacher , web@shellarchive.co.uk, Masatake YAMATO , joakim@verona.se, emacs-devel@gnu.org, rubikitch , Stefan Monnier , Phil Hagelberg To: Christian Ohler Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 12 15:49:04 2010 connect(): No such file or directory 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 1ONR55-0007D4-ID for ged-emacs-devel@m.gmane.org; Sat, 12 Jun 2010 15:49:03 +0200 Original-Received: from localhost ([127.0.0.1]:47356 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ONR55-0006iy-20 for ged-emacs-devel@m.gmane.org; Sat, 12 Jun 2010 09:49:03 -0400 Original-Received: from [140.186.70.92] (port=59342 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ONR4z-0006iE-G2 for emacs-devel@gnu.org; Sat, 12 Jun 2010 09:48:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ONR4y-0006DO-Dk for emacs-devel@gnu.org; Sat, 12 Jun 2010 09:48:57 -0400 Original-Received: from mail-gy0-f169.google.com ([209.85.160.169]:33003) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONR4y-0006DB-AF for emacs-devel@gnu.org; Sat, 12 Jun 2010 09:48:56 -0400 Original-Received: by gyg4 with SMTP id 4so1776976gyg.0 for ; Sat, 12 Jun 2010 06:48:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=mqgpXluSxXpKK6aBB4p6ZgJ5nqbo8G5SgzD+6lc6Pb0=; b=q7rw8D4xQ6XmxtnXy3WmD+3Heo1gcLyPOy5Upfo73/kiBecIEfqvJf+nT+rB8My5Pc 6jU9vLBO8+ekUx4UnB12dvrfW3q+91rrJB+XNscrYlMwGh+Qe+s2KxRD2bHmRlxqwtU+ cifLnrfB1wKNqCEeSk41CWfDqJeyqZN57vd9U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=UH0eGOabZzXOFQW4m0YzeAdWiAeBf8faUNZH6srJwWJ6tARja/w8b7gpvtiqnBbFIz lg7sBNipWq21trjNEOOsbPJyYzmo+5zldTtbxInVyHuTKmSRKP0xa6KKJQoM1WpAxFcQ 7rCwxViyTDkeenecVnzYGhGqqUvwenVWWL4NI= Original-Received: by 10.101.132.14 with SMTP id j14mr2765815ann.143.1276350535150; Sat, 12 Jun 2010 06:48:55 -0700 (PDT) Original-Received: by 10.100.154.15 with HTTP; Sat, 12 Jun 2010 06:48:35 -0700 (PDT) In-Reply-To: <4C1323F5.80301@fastmail.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:125812 Archived-At: On Sat, Jun 12, 2010 at 8:06 AM, Christian Ohler wrote: > > It does not yet include utilities for testing Emacs state such as window > layouts and buffer contents with text properties, or user input, but such > utilities are orthogonal to the basic test execution framework and can be > added incrementally. =C2=A0I think Lennart has some of this already in hi= s fork. My additions are for running commands (i.e. running the necessary hooks in hopefully correct order) and for testing of fontification. There is also a little bit for adding a test input file for a test. And a bit for keeping track of the test name. But I suggest you review my code and tweak it to your liking. Please contact me off list. > I have some spare time now and can offer to work on integrating ert into > Emacs; any suggestions where to start? =C2=A0Where does a file like ert.e= l > belong? =C2=A0Where should the corresponding tests go? There is already a sub-directory for tests, "emacs/test". To my surprise the elisp files for test also is there. I suggest these should be somewhere like "emacs/lisp/test" instead and that "emacs/test" will be for data files etc instead. An objection to this might be that the tests can't be run without the data. Yes, but the code in the elisp files can serve as examples for those writing tests.