[
https://jira.codehaus.org/browse/MIDEA-87?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Osipov closed MIDEA-87.
-------------------------------
Resolution: Won't Fix
Please refer to
https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014
if you're wondering why this issue was closed out.
Assignee, if you think you can fix this bug anytime soon, please reopen and
proceed appropriately.
> maven-idea-plugin generates projects that do not work properly with JUnit 4.
> ----------------------------------------------------------------------------
>
> Key: MIDEA-87
> URL: https://jira.codehaus.org/browse/MIDEA-87
> Project: Maven IDEA Plugin (RETIRED)
> Issue Type: Bug
> Affects Versions: 2.0
> Environment: Windows XP Pro,
> maven-idea-plugin V 2.1-SNAPSHOT
> Reporter: Kevan Dunsmore
> Assignee: Edwin Punzalan
> Attachments: testbug.zip
>
>
> Generating a project using the maven-idea-plugin results in project files
> that cause Idea to be unable to execute Junit 4 tests where the test classes
> are POJOs in a hierarchy.
> For example, if I have the following JUnit 4 test classes, Idea does not
> recognize the valid test hierarchy:
> public abstract class BaseTest {
> @Test
> public void foo() {
> // Test code here.
> }
> }
> public class MySpecializedTest extends BaseTest { }
> 1. Right clicking on MySpecializedTest does not show the "Run
> MySpecializedTest" test context menu option.
> 2. Executing all tests in the package returns an error stating that no test
> classes could be found.
> If you change MySpecializedTest to this:
> public class MySpecializedTest extends BaseTest {
> @Test
> public void bar() {
> // Specialized test code
> }
> }
> Then Idea finds the MySpecializedTest.bar() test and executes it but does not
> execute the inherited foo() test case.
> This problem is caused by the inclusion of the following element in the ipr
> file:
> <component name="JUnitProjectSettings">
> <option name="TEST_RUNNER" value="UI" />
> </component>
> After I manually removed the element (actually commented it out) and
> restarted Idea, it was able to detect the correct number of tests in the test
> class hierarchy.
> Please find attached to this issue a zip file containing a project
> illustrating this bug. I have modified the .ipr file to comment-out the
> problem element shown above. As such, the project is configured such that
> Idea will correctly identify the JUnit tests. To view the bug behavior, open
> the .ipr file and uncomment the element (it's the first one in the file under
> the root "project" element).
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)