You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2006/07/31 16:55:37 UTC

[jira] Updated: (MSUREFIRE-132) Odd Filename/inner class dependant behavior (and some junit tests)

     [ http://jira.codehaus.org/browse/MSUREFIRE-132?page=all ]

Brett Porter updated MSUREFIRE-132:
-----------------------------------

    Fix Version/s: 2.3

> Odd Filename/inner class dependant behavior (and some junit tests)
> ------------------------------------------------------------------
>
>                 Key: MSUREFIRE-132
>                 URL: http://jira.codehaus.org/browse/MSUREFIRE-132
>             Project: Maven 2.x Surefire Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2
>            Reporter: Bryce Nordgren
>            Priority: Minor
>             Fix For: 2.3
>
>         Attachments: surefire-junit-tests.patch
>
>
> I started this because I couldn't get maven 2 to recognize the tests which came with Jakarta commons-events.  The problem boils down to the fact that there are many files/classes which implement tests, but they are all collated by a single TestSuite, called AllTestSuite.java, which extends TestCase.  I am able to make maven run the tests merely by renaming this file to AllSuiteTest.java, and no other changes. 
> I tried adding an {{<include>}} element with the original name, but this did not pick up the tests.  Surefire reliably reports that there are no tests to run.
> I did some remedial testing with junit tests (coded against the surefire-junit trunk).  I was unable to reproduce this behavior, but I did uncover wierd behavior with TestCases as inner classes.  The patch against surefire-junit trunk is included and includes only minor changes to the POM and the tests I wrote.

-- 
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