You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ciaran Treanor <ci...@capetechnologies.com> on 2003/07/17 14:36:19 UTC

unit test resources

Hi,
I've written a number of unit tests for a project and
some of these tests require data files (*.dat) in order to
run. I'm having trouble getting Maven to put these .dat
files into target/test-classes/com/foo/bar as part
of the build process. Thus the tests are failing when
I run:
maven jar

Can anyone tell me the syntax to use in the <unitTest>
part of the pom so that **/*.dat are copies from src/test
to target/test-classses

Thanks,
ct




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: unit test resources

Posted by Mark McBride <ma...@llnl.gov>.
Maybe try something like this:
  <unitTestSourceDirectory>src/test</unitTestSourceDirectory>
           <unitTest>
             <includes>
               <include>**/*Test.java</include>
                    <include>**/*.dat</include>
             </includes>
           </unitTest>

-Mark
At 01:36 PM 7/17/2003 +0100, you wrote:
>Hi,
>I've written a number of unit tests for a project and
>some of these tests require data files (*.dat) in order to
>run. I'm having trouble getting Maven to put these .dat
>files into target/test-classes/com/foo/bar as part
>of the build process. Thus the tests are failing when
>I run:
>maven jar
>
>Can anyone tell me the syntax to use in the <unitTest>
>part of the pom so that **/*.dat are copies from src/test
>to target/test-classses
>
>Thanks,
>ct
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org