[ http://jira.codehaus.org/browse/MIDEA-58?page=all ]

Dennis Lundberg updated MIDEA-58:
---------------------------------

    Priority: Minor  (was: Major)

> Improved support for IDEA's JUnit Plugin
> ----------------------------------------
>
>                 Key: MIDEA-58
>                 URL: http://jira.codehaus.org/browse/MIDEA-58
>             Project: Maven 2.x Idea Plugin
>          Issue Type: Improvement
>            Reporter: James Talmage
>            Priority: Minor
>
> I added this snippet to workspace.xml, and now IDEA's JUnit plugin behaves in 
> accordance with Maven's standard directory layout. 
> Clicking "create JUnit Test for this method", will now create the test file 
> under src/test instead of src/main.  
> {code:title=src/main/resources/templates/default/workspace.xml|borderStyle=solid}
> ...
> <component name="ClassPatternConfiguration">
>   <testPatterns>
>     <classPattern testedClass="src/main/java/$DIRECTORY$/$CLASS$" 
>                   testClass="src/test/java/$DIRECTORY$/$CLASS$Test" />
>   </testPatterns>
> </component>
> ...
> {code}
> I haven't tested it on a version of IDEA that doesn't have the JUnit plugin 
> installed, but my understanding is that it will just be ignored.
> You can configure these settings as the default in IDEA ({color:blue}File  |  
> Template Project Settings{color}) . But those are global (it would affect 
> non-maven projects).  In lieu of making the above changes, adding a 
> recommendation to change IDEA's default settings in the plugin documentation 
> could be helpful to some users.
> Possible Enhancements:
> * Offer support for non standard directory layouts.
> * Allow additional patterns to be specified in the POM

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

        

Reply via email to