> Usually i use the tag <testSourceDirectory> in order to indicate if
> tests are for integration
> (<testSourceDirectory>src/it</testSourceDirectory>) or for unit tests
> (<testSourceDirectory>src/test</testSourceDirectory>)
> I use 2 modules, one for unit tests and another for integration tests
[[Marcin Kwapisz]] 

The following configuration doesn't work, testSourceDirectory under surefire 
plugin configuration can be set to any directory:

<build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.4.3</version>
                <configuration>
                    
<testSourceDirectory>${project.build.directory}/filteredTestSources</testSourceDirectory>
                </configuration>
            </plugin>
        </plugins>
</build>

And that one of course works (I use it), and if there is no test sources, no 
test will be compiled and run:

<build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.4.3</version>
            </plugin>
        </plugins>
       
<testSourceDirectory>${project.build.directory}/filteredTestSources</testSourceDirectory>
</build>

I attached simple example to this email, but I do not know if the list server 
accept it

Regards
Marcin

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to