Error running test when the output directory is not 'target'
------------------------------------------------------------

         Key: MNG-539
         URL: http://jira.codehaus.org/browse/MNG-539
     Project: Maven 2
        Type: Bug
  Components: maven-plugins  
    Versions: 2.0-alpha-3    
    Reporter: Shane Duan
 Attachments: pom.xml

Before I realized that output directory elements are optional, I used 'build' 
as the name, which somehow makes surefire think that there is no test to run.  
After struggling with it thinking it is something else I need to do, I 
accidently deleted it and it works.

You can check out our open source project dbfixture 
(http://gforge.public.thoughtworks.org/projects/dbfixture/) if you want to 
reproduce it.  But in a nut shell:

This works:
...
  <build>
    <sourceDirectory>src</sourceDirectory>
    <testSourceDirectory>test</testSourceDirectory>
    <testResources>
      <testResource>
        <directory>test</directory>
        <includes>
          <include>**/*.txt</include>
        </includes>
      </testResource>
    </testResources>
  </build> 
...
and this doesn't
...
  <build>
    <sourceDirectory>src</sourceDirectory>
    <testSourceDirectory>test</testSourceDirectory>
    <testResources>
      <testResource>
        <directory>test</directory>
        <includes>
          <include>**/*.txt</include>
        </includes>
      </testResource>
    </testResources>
   If uncommented, the test will show no test to run
    <directory>build</directory>
    <outputDirectory>build/classes</outputDirectory>
    <testOutputDirectory>build/test-classes</testOutputDirectory>
  </build> 
...


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to