Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 47805 invoked from network); 20 Feb 2008 19:41:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Feb 2008 19:41:44 -0000 Received: (qmail 88978 invoked by uid 500); 20 Feb 2008 19:41:30 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 88897 invoked by uid 500); 20 Feb 2008 19:41:30 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 88886 invoked by uid 99); 20 Feb 2008 19:41:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Feb 2008 11:41:30 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mickknutson@gmail.com designates 209.85.162.178 as permitted sender) Received: from [209.85.162.178] (HELO el-out-1112.google.com) (209.85.162.178) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Feb 2008 19:40:57 +0000 Received: by el-out-1112.google.com with SMTP id r27so1229357ele.2 for ; Wed, 20 Feb 2008 11:41:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=hwxLYkgP4pZwXCqild33u9n0Gx7PO7D88JmfWThQVsQ=; b=vHqBA4sw5ydpqcax4yZowAK6606LRUBQuDYf4lHkAjCwYVKFZFpeO6vOgNaIHUqimkxAtN6mi0pBek9k/2TttfuWlb/V/p6yc9SCQE9ZHilHa3rPf9r3i3FQpwPQ0tYIZW8j+Anak26ptgYkWfzLWBmZIJnFSuIS0P9VjRsuS+I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=hOeC4g9TJTyhxrMQDMUBU/8vYomu3rMI9TBBlKV+LvXlagL6v0N0nuH4eLTUCSu16UpgpcuFEX4tY814hI33V/3FHokAxYBxoj5kQAfSjROvl9vp8Jion9wz9W/O1VWqGecKJBk+R5SPFrsgV/9SbdfEw7TQLSBQURXYVSqpTUE= Received: by 10.114.53.1 with SMTP id b1mr5745096waa.134.1203536464463; Wed, 20 Feb 2008 11:41:04 -0800 (PST) Received: by 10.114.185.12 with HTTP; Wed, 20 Feb 2008 11:41:04 -0800 (PST) Message-ID: <4c30ee7d0802201141g298973d0v1caaf604f333c48c@mail.gmail.com> Date: Wed, 20 Feb 2008 13:41:04 -0600 From: "Mick Knutson" To: maven Subject: Re: [m208] testng error when no clean In-Reply-To: <4c30ee7d0802191616h2377195ag57eca369fe91ff4d@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_28921_32447697.1203536464463" References: <4c30ee7d0802191616h2377195ag57eca369fe91ff4d@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_28921_32447697.1203536464463 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Aside from this issue i still have, it seems that my existing Junit tests are not run at all. How can I get both TestNG and JUnit to run together? On Feb 19, 2008 6:16 PM, Mick Knutson wrote: > I used the supplied tutorial: > http://maven.apache.org/plugins/maven-surefire-plugin/examples/testng.html > > I have the dependancy set as shown. > > *here is My plugin:* > > org.apache.maven.plugins > maven-surefire-plugin > 2.4.1 > > > > net.sourceforge.cobertura.datafile > > > ${basedir}/target/cobertura/cobertura.ser > > > true > 10 > > > > ${basedir}/src/test/resources/testng.xml > > > > > *Here is my testng.xml:* > > > > > > > > > > > > > > > > > When I run "mvn clean install" the tests run fine. > But when I run "mvn install" I get this error: > > *[INFO] Nothing to compile - all classes are up to date > [INFO] [surefire:test] > [INFO] Surefire report directory: > C:\opt\baselogic\tools\common-jar\target\surefire-reports > org.apache.maven.surefire.booter.SurefireExecutionException: > org.testng.xml.Parser.parse()Lorg/testng/xml/XmlSuite;; nested exception > is java.lan > g.NoSuchMethodError: org.testng.xml.Parser.parse > ()Lorg/testng/xml/XmlSuite; > java.lang.NoSuchMethodError: org.testng.xml.Parser.parse > ()Lorg/testng/xml/XmlSuite; > at > org.apache.maven.surefire.testng.TestNGXmlTestSuite.locateTestSets( > TestNGXmlTestSuite.java:132) > at org.apache.maven.surefire.Surefire.createSuiteFromDefinition( > Surefire.java:150) > at org.apache.maven.surefire.Surefire.run(Surefire.java:111) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke( > NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke( > DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at > org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess( > SurefireBooter.java:290) > at org.apache.maven.surefire.booter.SurefireBooter.main( > SurefireBooter.java:818) > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] There are test failures. > * > > > -- > Thanks, > Mick Knutson > > http://www.baselogic.com > http://www.blincmagazine.com > http://www.djmick.com > http://www.myspace.com/mickknutson > http://www.myspace.com/BLiNCMagazine > http://tahoe.baselogic.com > --- -- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/BLiNCMagazine http://tahoe.baselogic.com --- ------=_Part_28921_32447697.1203536464463--