Return-Path: Delivered-To: apmail-maven-issues-archive@minotaur.apache.org Received: (qmail 48978 invoked from network); 12 Oct 2010 12:46:01 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Oct 2010 12:46:01 -0000 Received: (qmail 37004 invoked by uid 500); 12 Oct 2010 12:46:01 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 36681 invoked by uid 500); 12 Oct 2010 12:46:01 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 36621 invoked by uid 99); 12 Oct 2010 12:45:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Oct 2010 12:45:59 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [63.246.2.115] (HELO codehaus01.managed.contegix.com) (63.246.2.115) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Oct 2010 12:45:54 +0000 Received: from codehaus01.managed.contegix.com (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id 21D2015F00EB for ; Tue, 12 Oct 2010 07:45:33 -0500 (CDT) Date: Tue, 12 Oct 2010 07:45:33 -0500 (CDT) From: "Vincent Massol (JIRA)" To: issues@maven.apache.org Message-ID: <15454787.78853.1286887533136.JavaMail.haus-jira@codehaus01.managed.contegix.com> In-Reply-To: <27526609.78852.1286887532633.JavaMail.haus-jira@codehaus01.managed.contegix.com> Subject: [jira] Updated: (MNG-4861) Maven 3 and Surefire plugin 2.6 fail to execute tests that use a custom runner (e.g ClasspathSuite) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 4e90ceb663894a42f12c0e28abbab431 X-Virus-Checked: Checked by ClamAV on apache.org [ http://jira.codehaus.org/browse/MNG-4861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vincent Massol updated MNG-4861: -------------------------------- Testcase included: (was: yes) > Maven 3 and Surefire plugin 2.6 fail to execute tests that use a custom runner (e.g ClasspathSuite) > --------------------------------------------------------------------------------------------------- > > Key: MNG-4861 > URL: http://jira.codehaus.org/browse/MNG-4861 > Project: Maven 2 & 3 > Issue Type: Bug > Affects Versions: 3.0 > Reporter: Vincent Massol > > In XWiki we're using ClasspathSuite (http://johanneslink.net/projects/cpsuite.jsp) in a AllTests file. This works fine with Maven 2.2.1 and Surefire plugin 2.6. > When using Maven 3.0 the test fails to run with the following error: > {noformat} > java.lang.Exception: Custom runner class ClasspathSuite should have a public constructor with signature ClasspathSuite(Class testClass) > at org.junit.internal.runners.InitializationError.(InitializationError.java:19) > at org.junit.internal.requests.ClassRequest.buildRunner(ClassRequest.java:36) > at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:28) > at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:51) > at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:120) > at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:103) > at org.apache.maven.surefire.Surefire.run(Surefire.java:169) > 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:597) > at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350) > at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021) > {noformat} > To reproduce you can check out and build (you'll need to have XWiki's remote repo in your settings.xml, see http://dev.xwiki.org/xwiki/bin/view/Community/Building): > http://svn.xwiki.org/svnroot/xwiki/enterprise/trunk/distribution-test/ui-tests/ > Thanks -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira