From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marek Kubica Newsgroups: gmane.lisp.guile.user Subject: unit-test: How? Date: Tue, 14 Dec 2010 20:54:56 +0100 Message-ID: <20101214205456.3a37a474@halmanfloyd> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1292356554 28263 80.91.229.12 (14 Dec 2010 19:55:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 14 Dec 2010 19:55:54 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Dec 14 20:55:50 2010 Return-path: Envelope-to: guile-user@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 1PSayT-00079V-GC for guile-user@m.gmane.org; Tue, 14 Dec 2010 20:55:49 +0100 Original-Received: from localhost ([127.0.0.1]:49910 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PSayT-0007mu-3r for guile-user@m.gmane.org; Tue, 14 Dec 2010 14:55:49 -0500 Original-Received: from [140.186.70.92] (port=57622 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PSayG-0007lN-AN for guile-user@gnu.org; Tue, 14 Dec 2010 14:55:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PSayF-0002mX-1m for guile-user@gnu.org; Tue, 14 Dec 2010 14:55:36 -0500 Original-Received: from coaxial.xivilization.net ([178.63.18.39]:37928) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PSayE-0002mG-TP for guile-user@gnu.org; Tue, 14 Dec 2010 14:55:35 -0500 Original-Received: from ppp-93-104-49-234.dynamic.mnet-online.de ([93.104.49.234] helo=halmanfloyd) by coaxial.xivilization.net with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1PSay7-0003wx-0d for guile-user@gnu.org; Tue, 14 Dec 2010 20:55:27 +0100 X-Mailer: Claws Mail 3.7.8 (GTK+ 2.22.1; x86_64-unknown-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:8315 Archived-At: Hi, After getting so many useful answers here, my next question :) I am pretty new to GOOPS and the CLOS, so I suppose I am missing something, but I've tried the unit-test module from guile-lib (in Guile 1.9.13) but I am unable to add test-cases to the test-suite: I've tried something like this, but while the test runner runs just fine, the test does not seem to get executed and never fails. (use-module (unit-test)) (define-method (test-started (self )) (run (test self) (test-result self)) (assert-equal 1 2)) (run-all-defined-test-cases) What do I need to do? I tried the examples on http://article.gmane.org/gmane.lisp.guile.user/1728 but it does not seem to be fully compatible. regards, Marek