You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2005/07/16 22:48:57 UTC
[jira] Updated: (MNG-539) Error running test when the output directory is not 'target'
[ http://jira.codehaus.org/browse/MNG-539?page=all ]
Brett Porter updated MNG-539:
-----------------------------
Description:
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>
...
was:
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>
...
Fix Version: 2.0-beta-1
Environment:
> 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
> Fix For: 2.0-beta-1
> 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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org