Return-Path: Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 98296 invoked by uid 500); 22 Jul 2003 12:51:33 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 90364 invoked from network); 22 Jul 2003 12:46:54 -0000 Message-ID: From: "Nerbo, Geir" To: Ant Users List Subject: RE: Junit + Ant Date: Tue, 22 Jul 2003 07:45:59 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C3504F.338FDAD0" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C3504F.338FDAD0 Content-Type: text/plain I believe it is your Testador.java implementation It should work if you have something like this ... geir public class AllJunitTests extends TestCase { /** Placeholder where we have to add new test-packages as new packages occur under COM.XYZ: */ public static Test suite() { TestSuite suite = new TestSuite(); /** * Add new package includes here: */ //EXAMPLE suite.addTest(new TestSuite(COM.XYZ.StringUtilsTest.class)); return suite; } public AllJunitTests(String name) { super(name); } } -----Original Message----- From: Aloizio Pereira da Silva [mailto:aloizio@dcc.ufmg.br] Sent: Tuesday, July 22, 2003 8:39 AM To: user@ant.apache.org Subject: Junit + Ant Hi everybody, I am trying to run my unit tests. I have a class java, its name is Testador.java that runs all the tests in a package. I obtain the following message: Buildfile: build.xml runtests: [junit] .F [junit] Time: 0 [junit] There was 1 failure: [junit] 1) warning(junit.framework.TestSuite$1)junit.framework.AssertionF edError: No tests found in teste.siace.remessaanual.Testador [junit] FAILURES!!! [junit] Tests run: 1, Failures: 1, Errors: 0 BUILD FAILED file:M:/Aloizio/JAVADOC/synergia_checkstyle/build.xml:207: Java returned: 1 Total time: 2 seconds Could someone help me? ***************************************************** * Federal University of Minas Gerais * * Department of Computer Science * * Master Degree in Computer Science * * * * Aloizio Silva * * http://www.dcc.ufmg.br/~aloizio * * * * Mobile Computer and Network Optimization * ***************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org ------_=_NextPart_001_01C3504F.338FDAD0--