From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: Testing code Date: Mon, 27 Sep 2010 18:06:45 +0200 Message-ID: <87r5gfdvca.fsf@gmx.de> References: <87pqvzfi0e.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=39289 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P0GEE-0005pO-1D for emacs-orgmode@gnu.org; Mon, 27 Sep 2010 12:07:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P0GEC-0006JU-9f for emacs-orgmode@gnu.org; Mon, 27 Sep 2010 12:06:57 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:34896 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1P0GEB-0006J7-R1 for emacs-orgmode@gnu.org; Mon, 27 Sep 2010 12:06:56 -0400 In-Reply-To: <87pqvzfi0e.fsf@gmx.de> (Sebastian Rose's message of "Mon, 27 Sep 2010 15:11:45 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Emacs-orgmode mailing list Sebastian Rose writes: > I'd like to write a few simple tests for the modified hex-decoding > functions I wrote for org-protocol.el. > These functions and the patch is easier to understand and maintain if > there are some simple tests, I guess. > > Could we have a short introduction in writing tests on Worg (or is it > there)? Hm - there's a little tutorial in org-tests/. But ert has grown and consists now of 7 el files plus one texinfo file. As this seems easy to use and comes with at least some documentation, I'll use ert [1] for a start. Once the tests are written, we can easily convert to something else. Sebastian [1] http://github.com/ohler/ert