Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 40138 invoked from network); 31 Jul 2008 12:11:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Jul 2008 12:11:52 -0000 Received: (qmail 83939 invoked by uid 500); 31 Jul 2008 12:11:44 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 83901 invoked by uid 500); 31 Jul 2008 12:11:44 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 83889 invoked by uid 99); 31 Jul 2008 12:11:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Jul 2008 05:11:43 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of insomniacpenguin@googlemail.com designates 209.85.200.173 as permitted sender) Received: from [209.85.200.173] (HELO wf-out-1314.google.com) (209.85.200.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Jul 2008 12:10:46 +0000 Received: by wf-out-1314.google.com with SMTP id 23so481582wfg.10 for ; Thu, 31 Jul 2008 05:11:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=eBRXGrZpxuS4SHUNGzSFQZDU9qdgajyOmyiSU1c4TX0=; b=bF2XnaZCQRuwqzR1+ngKfHJIb2rlEyQzWVbCh0basbk4ZsVCwA45BDNUS9771insKc 6ZnjqqtYyhVa1nG+bq/zZRy6EjRUDQL+Ct5y6b0TXWlZ4OKnUb3/Ft8FknU0P7l/Uo+7 tIZ1eGbM1UrfbE6luGDmT96FGj75cb8wN3D84= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=j94n/hqbB9NmFu5oFazGPloLUM5URf88zzl8Im5gx92q3r6NWtfZ3b+9pBYo88VMrt NyoaxHChyODOuNsV2hxWMEMcEV6PpzxBaBFHBKQJct8zApc9s+lI8YXxIg0xSJ/CMiam togE3r+uPzgn/4dX4aVdQMzJN5a47QJf5hUn4= Received: by 10.142.193.13 with SMTP id q13mr3244327wff.103.1217506272398; Thu, 31 Jul 2008 05:11:12 -0700 (PDT) Received: by 10.142.231.6 with HTTP; Thu, 31 Jul 2008 05:11:12 -0700 (PDT) Message-ID: Date: Thu, 31 Jul 2008 13:11:12 +0100 From: "Andy Stevens" To: "Ant Users List" Subject: Re: ant and junit assertion error In-Reply-To: <18750171.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <18750171.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org 2008/7/31 tacman : > Hi > > I am using JUnit and Ant to run/build/test my java code. Using the optional task, presumably. What versions of Ant & JUnit? > Whenever I try to run a test class (ant test) I receive the following error: > > junit.framework.AssertionErrorFailed => no tests found in [....etc] > > The test class: > 1. Imports the junit framework > 2. has @Test before every test method Strange; my first guess was it's using the JUnit 3.8.x test runner and your test methods aren't named testXYZ(), however... > The test classes in which no tests were found all have the tests methods > named as initAndTestSomething(). I changed the method names to contain > 'test' e.g. testInitAndTestSomething(), cleaned the build, recompiled, and > retested. ... if that were the case, I'd expect this to fix it :-( > Needless to say, I still receive the assertion error. > > Does anyone have any idea what I'm doing wrong? Can you post the task from your build script? Maybe someone will spot something amiss in it. Also, how are you making the junit jar available to Ant? Andy. -- http://pseudoq.sourceforge.net/ Open source java Sudoku application --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org