Return-Path: Delivered-To: apmail-maven-issues-archive@minotaur.apache.org Received: (qmail 2206 invoked from network); 12 Feb 2010 00:20:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Feb 2010 00:20:27 -0000 Received: (qmail 69841 invoked by uid 500); 12 Feb 2010 00:20:27 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 69758 invoked by uid 500); 12 Feb 2010 00:20:27 -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 69748 invoked by uid 99); 12 Feb 2010 00:20:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Feb 2010 00:20:27 +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; Fri, 12 Feb 2010 00:20:16 +0000 Received: from codehaus01.managed.contegix.com (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id 5336814A81A2 for ; Thu, 11 Feb 2010 18:19:55 -0600 (CST) Date: Thu, 11 Feb 2010 18:19:55 -0600 (CST) From: "Ryan Lea (JIRA)" To: issues@maven.apache.org Message-ID: <16165337.82422.1265933995320.JavaMail.haus-jira@codehaus01.managed.contegix.com> In-Reply-To: <118136025.1148886521720.JavaMail.haus-jira@codehaus01.managed.contegix.com> Subject: [jira] Commented: (SUREFIRE-130) Support tests written in Jython 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/SUREFIRE-130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=209895#action_209895 ] Ryan Lea commented on SUREFIRE-130: ----------------------------------- I realise this is 3 years old. From reading through the comments on a few issues: http://jira.codehaus.org/browse/SUREFIRE-292 and http://jira.codehaus.org/browse/SUREFIRE-141 I'm not sure whether this kind of functionality is going to be implemented. I'm about to start writing a similar provider and modify the surefire-plugin to handle my provider but was wondering if there was actually any kind of direction this project is taking that I should be taking into consideration to ensure that I don't require lots of rework. Any comments or feedback would be welcomed. Thanks > Support tests written in Jython > ------------------------------- > > Key: SUREFIRE-130 > URL: http://jira.codehaus.org/browse/SUREFIRE-130 > Project: Maven Surefire > Issue Type: New Feature > Reporter: Charlie Groves > Assignee: fabrizio giustina > Fix For: 2.x > > Attachments: jythonProvider.tar.gz, jythonProviderTest.tar.gz, MSUREFIRE-122-maven-surefire-plugin.patch, MSUREFIRE-122-surefire-providers.patch > > > I've written a first pass at a surefire-provider for JUnit and Python unittest TestCases written in Jython. Before I continue any further I'd like to make sure that the provider is wanted and that I'm heading in the right direction. > To do the minimum to get it up and running, I've hooked into the maven-surefire-plugin to hook my provider into the system somewhat like the TestNG provider did. maven-surefire-plugin passes a path(defaults to src/test/jython) to the provider. The provider searches the path for files matching include patterns and loads those as Python modules. For every class in the matching modules that extends junit or unittest TestCase, it makes a SurefireTestSuite and exposes them for running. Sound like a decent approach? > To give it a spin, apply maven-surefire-plugin.patch, mvn install on the surefire-jython project and run mvn test in jythonProviderTest. It's just contains a single Junit testcase with a failing and passing test. > I haven't even checked what happens when the jython tests throw exceptions, and I know there's alot to be done as far as making it a usable plugin, but I felt like getting some feedback before continuing. -- 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