From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexis Newsgroups: gmane.emacs.help Subject: Re: ERT conventions? Date: Sun, 06 Sep 2015 15:27:23 +1000 Message-ID: <878u8kce2s.fsf@gmail.com> References: <87r3mc16qn.fsf@mbork.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: ger.gmane.org 1441517277 10257 80.91.229.3 (6 Sep 2015 05:27:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Sep 2015 05:27:57 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 06 07:27:42 2015 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 1ZYSUP-0002yi-EI for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Sep 2015 07:27:41 +0200 Original-Received: from localhost ([::1]:45206 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZYSUO-0008KA-Vo for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Sep 2015 01:27:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44060) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZYSUF-0008K3-Sh for help-gnu-emacs@gnu.org; Sun, 06 Sep 2015 01:27:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZYSUC-0001tD-LY for help-gnu-emacs@gnu.org; Sun, 06 Sep 2015 01:27:31 -0400 Original-Received: from mail-pa0-x22f.google.com ([2607:f8b0:400e:c03::22f]:34167) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZYSUC-0001sw-Eu for help-gnu-emacs@gnu.org; Sun, 06 Sep 2015 01:27:28 -0400 Original-Received: by padhy16 with SMTP id hy16so61030968pad.1 for ; Sat, 05 Sep 2015 22:27:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:to:subject:in-reply-to:date:message-id:mime-version :content-type; bh=16N1CHJHkE/NkqcTdrC9Ie4NfVEvCAuknzzFPRazT74=; b=gSS0E/9i3v9yo0fk7CyvY48p5nnrQZqRBuVWnD84qcsi/MDd4vwYUamcK9AVtPunP1 v50AIb6UAqqSdBOniCPXigVJ7HBbu0LOTRrvtEN1X+ZoFG3Tl8ht7vqKRFTOg7ZfhOIL 4jALzKBQrMBqDeLWhcyOdkMjhfgHuqHXmRb6LuXBeTvlJoCUxuiXpTfkE4z5s7X19qYH kdFxixoI+9usrvu1JXpbRtvTjm0wXMPuEAnNgyRAnJTI+KDLrY76/I4jgP1OUkIc2A0G VQ5KekNaHWjRC6a5GPrPIE594XDfgpECHNS9E1JlbYvX/0qanzExLi5FTJ3e9dKSiac+ 1JpQ== X-Received: by 10.68.162.99 with SMTP id xz3mr29682289pbb.134.1441517247853; Sat, 05 Sep 2015 22:27:27 -0700 (PDT) Original-Received: from localhost (ppp118-209-122-14.lns20.mel4.internode.on.net. [118.209.122.14]) by smtp.gmail.com with ESMTPSA id si1sm7546329pbc.72.2015.09.05.22.27.26 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Sep 2015 22:27:27 -0700 (PDT) In-reply-to: <87r3mc16qn.fsf@mbork.pl> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c03::22f 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:107053 Archived-At: Marcin Borkowski writes: > Hi all, > > I'm learning the ERT package. I'd like to know whether there > are any conventions/good practices regarding writing tests. > Eg., should they be written in a file separate from the package? > (I guess yes, for obvious reasons.) Are there any standards for > the name of that file? In general: could anyone using ERT (or > any other testing facility, for that matter) share some > experiences worth knowing? i've found ERT pretty easy to use. For `org-vcard`, i've put the test suite in a single file within a distinct 'tests' folder, which also contains a 'data' folder containing various data sources for the tests to run on: https://github.com/flexibeast/org-vcard/tree/master/tests Alexis.