You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by iDuke <pk...@gmx.ch> on 2007/04/30 09:22:39 UTC
configuration, execution, include
Hi,
I have tried out a little bit and encountered something I don't understand.
I used the following pom, but when I try to execute the integration test, it
does not seem to test the files which I listed in the integration-test
execution
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.xxx.course</groupId>
<artifactId>xxx</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<includes>
<include>none</include>
</includes>
</configuration>
<executions>
<execution>
<id>test</id>
<goals>
<goal>test</goal>
</goals>
<phase>test</phase>
<configuration>
<includes>
<include>command/library/CmdDirTest.java</include>
<include>command/library/CmdCdTest.java</include>
<include>invoker/CmdDirIntegrationTest.java</include>
</includes>
</configuration>
</execution>
<execution>
<id>integration-test</id>
<goals>
<goal>test</goal>
</goals>
<phase>integration-test</phase>
<configuration>
<includes>
<include>command/library/CmdCdTest.java</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
When i execute
mvn integration-test
I get the following output
C:\Documents and Settings\phk\My Documents\DOSBoxClever>mvn integration-test
[INFO] Scanning for projects...
[INFO]
-------------------------------------------------------------------------
---
[INFO] Building Unnamed - com.xxx.course:dosbox-simple:jar:1.0-SNAPSHOT
[INFO] task-segment: [integration-test]
[INFO]
-------------------------------------------------------------------------
---
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Compiling 23 source files to C:\Documents and Settings\phk\My
Documents\D
OSBoxClever\target\test-classes
[INFO] [surefire:test]
[INFO] Surefire report directory: C:\Documents and Settings\phk\My
Documents\DOS
BoxClever\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
There are no tests to run.
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO] [surefire:test {execution: test}]
[INFO] Surefire report directory: C:\Documents and Settings\phk\My
Documents\DOS
BoxClever\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running invoker.CmdDirIntegrationTest
Tests run: 6, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 2.516 sec
<<< FA
ILURE!
Running command.library.CmdCdTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.046 sec
Running command.library.CmdDirTest
Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.032 sec
<<< FA
ILURE!
Results :
Failed tests:
testOptionWOutput(invoker.CmdDirIntegrationTest)
testOptionSForTempDirCheckSummaryAtEnd(invoker.CmdDirIntegrationTest)
testOptionSForAnEmptyDirectory(invoker.CmdDirIntegrationTest)
testWithPathAsParameter(command.library.CmdDirTest)
Tests run: 17, Failures: 4, Errors: 0, Skipped: 0
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] There are test failures.
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 6 seconds
[INFO] Finished at: Mon Apr 30 09:15:58 CEST 2007
[INFO] Final Memory: 4M/10M
[INFO]
------------------------------------------------------------------------
It seems to execute the basic test configuration, and the the first
execution instead of the second. What my problem?
--
View this message in context: http://www.nabble.com/configuration%2C-execution%2C-include-tf3668263s177.html#a10249444
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org