Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 31150 invoked from network); 26 Nov 2003 09:31:44 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 26 Nov 2003 09:31:44 -0000 Received: (qmail 34384 invoked by uid 500); 26 Nov 2003 09:31:13 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 34102 invoked by uid 500); 26 Nov 2003 09:31:11 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 34088 invoked from network); 26 Nov 2003 09:31:11 -0000 Received: from unknown (HELO mail.cbim.it) (212.131.130.82) by daedalus.apache.org with SMTP; 26 Nov 2003 09:31:11 -0000 Received: from cuprouter.cbim.it (cuprouter.cbim.it [192.168.4.10]) by mail.cbim.it (8.11.6/8.11.0) with ESMTP id hAQ9vQM24490 for ; Wed, 26 Nov 2003 10:57:26 +0100 Received: from cbim.it (caterina.cbim.it [192.168.4.42]) by cuprouter.cbim.it (8.9.3/8.9.3) with ESMTP id KAA13571 for ; Wed, 26 Nov 2003 10:32:07 +0100 Message-ID: <3FC472F8.4000901@cbim.it> Date: Wed, 26 Nov 2003 10:31:36 +0100 From: Ugo Cei Organization: C.B.I.M. User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030314 X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: Unit testing References: <31DF72A980E5D511B48C000102BD868503EA80A5@calexc01.diginsite.com> In-Reply-To: <31DF72A980E5D511B48C000102BD868503EA80A5@calexc01.diginsite.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Ralph Goers wrote: > Are you sure unit tests still work? They worked fine for me in 2.1RC1 but > fail now. I looked at ExcaliburTestCase and ran it through the debugger and > don't see how it could possibly work. All the calls to getClass() were > replaced with ExcaliburTestCase.class. Unless I am missing something this > means it cannot possibly find test cases in classes that extend > ExcaliburTestCase. > > When I run my unit tests I get no tests found, which is what I would expect > with that code. Ah, I see what you mean. When I ran the tests myself I saw no failures, so I assumed they were OK, but I didn't check that some test cases reported "0 tests run". What is strange, however, is that I wrote a couple of testcases for Woody (src/blocks/woody/test/org/apache/cocoon/woody/datatype/*TestCase.java) that do extend ExcaliburTestCase and I'm pretty sure that they do get executed! Unfortunately, I'm not able to dig further into the problem ATM. Ugo -- Ugo Cei - Consorzio di Bioingegneria e Informatica Medica P.le Volontari del Sangue, 2 - 27100 Pavia - Italy Phone: +39.0382.525100 - E-mail: u.cei@cbim.it --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org