See:
MNG-2826
Done...
-----Original Message-----
From: EJ Ciramella [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 14, 2007 1:47 PM
To: Maven Users List
Subject: RE: Integration-test target runs integration tests twice...
Which requires a login....
Sigh....
Signing up for yet another maven related item....
-----Original Message-----
From: franz see [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 14, 2007 11:07 AM
To: [email protected]
Subject: RE: Integration-test target runs integration tests twice...
Good day to you, EJ,
That is odd. Though a goal may run more than once, an execution should
only
run once. And in your logs, surefire-iTest ran twice. You may want to
file a
jira issue for this in [1].
Cheers,
Franz
[1] http://jira.codehaus.org/browse/MNG
EJ Ciramella-2 wrote:
>
> Here's the important part from the log:
>
> [INFO]
>
------------------------------------------------------------------------
> ----
> [INFO] Building Reward Engine
> [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] Nothing to compile - all classes are up to date
> [INFO] [surefire:test]
> [INFO] Surefire report directory:
> E:\work\LTY-P000039\rewardEngine\..\reportsdirectory
>
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> There are no tests to run.
>
> Results :
> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
>
> [INFO] [jar:jar]
> [INFO] Building jar:
> E:\work\LTY-P000039\rewardEngine\target\rewardEngine-1.0-SNAPSHOT.jar
> [INFO] Preparing javadoc:javadoc
> [WARNING] Removing: javadoc from forked lifecycle, to prevent
recursive
> invocation.
> [INFO] No goals needed for project - skipping
> [INFO] [javadoc:javadoc {execution: default}]
> 39 warnings
> [INFO] [surefire:test {execution: surefire-iTest}]
> [INFO] Surefire report directory:
> E:\work\LTY-P000039\rewardEngine\..\reportsdirectory
>
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> Running com.upromise.common.reward.RewardEngineITest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 24.123
> sec
>
> Results :
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
>
> [INFO] [surefire:test {execution: surefire-iTest}]
> [INFO] Surefire report directory:
> E:\work\LTY-P000039\rewardEngine\..\reportsdirectory
>
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> Running com.upromise.common.reward.RewardEngineITest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 25.23
> sec
>
> Results :
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
>
> -----Original Message-----
> From: EJ Ciramella [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 14, 2007 10:20 AM
> To: Maven Users List
> Subject: RE: [m2] Integration-test target runs integration tests
> twice...
>
> Sorry I had that backward a bit, integration tests should only run the
> *Itest.java files. The regular test phase should only include the
> Utest.java files.
>
> We can get the unit tests to run fine, it's the integration tests run
> via integration-test that run twice.
>
> -----Original Message-----
> From: EJ Ciramella [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 14, 2007 9:52 AM
> To: Maven Users List
> Subject: RE: [m2] Integration-test target runs integration tests
> twice...
>
> So we have two types of tests, unit and integration.
>
> What we've attempted to do is bind the integration-test lifecycle to
the
> "test" phase but ONLY run the *Utest.java tests when
"integration-test"
> was specified.
>
> What happens is, by default, the "test" goal works fine, but when you
> specify "integration-test" it runs the *Utest.java tests twice.
>
> I'll attach the logs shortly...
>
> -----Original Message-----
> From: franz see [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 13, 2007 9:51 PM
> To: [email protected]
> Subject: Re: [m2] Integration-test target runs integration tests
> twice...
>
>
> Good day to you, EJ,
>
> What happens twice? ...May I ask for the build logs in your console?
>
> Cheers,
> Franz
>
>
> EJ Ciramella-2 wrote:
>>
>> I'm having a problem binding our integration tests to the
>> integration-test lifecycle goal.
>>
>> Can anyone explain why this would happen twice?
>>
>> Here's my pom:
>>
>> <?xml version="1.0" encoding="ISO-8859-1"?>
>>
>> <project xmlns="http://maven.apache.org/POM/4.0.0"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>> http://maven.apache.org/maven-v4_0_0.xsd">
>> <modelVersion>4.0.0</modelVersion>
>> <parent>
>> <groupId>lty</groupId>
>> <artifactId>app</artifactId>
>> <version>1.0-SNAPSHOT</version>
>> </parent>
>> <artifactId>rewardEngine</artifactId>
>> <packaging>jar</packaging>
>> <version>1.0-SNAPSHOT</version>
>> <description>Module to calculate rewards</description>
>> <name>Reward Engine</name>
>> <url>http://www.upromise.com</url>
>>
>> <build>
>> <resources>
>> <resource>
>> <directory>src/main/resources</directory>
>> <filtering>true</filtering>
>> </resource>
>> </resources>
>> <plugins>
>> <plugin>
>> <groupId>org.apache.maven.plugins</groupId>
>> <artifactId>maven-surefire-plugin</artifactId>
>> <configuration>
>> <reportsDirectory>../reportsdirectory</reportsDirectory>
>> <systemProperties>
>> <property>
>> <name>common.properties</name>
>> <value>${work.dir}/common.properties</value>
>> </property>
>> <property>
>> <name>java.util.logging.config.file</name>
>> <value>
>> ${work.dir}/utils/src/main/conf/logging.properties</value>
>> </property>
>> <property>
>> <name>rewardEngineITest.testData.file</name>
>> <value>
>>
>>
>
${work.dir}/rewardEngine/src/test/resources/xml/RewardEngineITestData.xm
>> l</value>
>> </property>
>> <property>
>> <name>rewardEngine.config.file</name>
>> <value>
>>
>>
>
${work.dir}/rewardEngine/src/main/resources/xml/EngineConfiguration.xml<
>> /value>
>> </property>
>> </systemProperties>
>> <includes>
>> <include>**/*UTest.java</include>
>> </includes>
>> </configuration>
>> </plugin>
>> </plugins>
>> </build>
>> <dependencies>
>>
>> <dependency>
>> <groupId>lty</groupId>
>> <artifactId>lty-model</artifactId>
>> <version>1.0-SNAPSHOT</version>
>> </dependency>
>>
>> <dependency>
>> <groupId>lty</groupId>
>> <artifactId>lty-utils</artifactId>
>> <version>1.0-SNAPSHOT</version>
>> </dependency>
>>
>> </dependencies>
>>
>>
>> <profiles>
>> <profile>
>> <id>itest-blah</id>
>> <activation>
>> <property>
>> <name>rewardEngine.iTest</name>
>> </property>
>> </activation>
>> <build>
>> <plugins>
>> <plugin>
>> <groupId>org.apache.maven.plugins</groupId>
>> <artifactId>maven-surefire-plugin</artifactId>
>> <executions>
>> <execution>
>> <id>surefire-iTest</id>
>> <phase>integration-test</phase>
>> <goals>
>> <goal>test</goal>
>> </goals>
>> <configuration>
>> <forkMode>pertest</forkMode>
>> <includes>
>> <include>**/*ITest.java</include>
>> </includes>
>> </configuration>
>> </execution>
>> </executions>
>> </plugin>
>> </plugins>
>> </build>
>> </profile>
>> </profiles>
>>
>> </project>
>>
>>
>>
>
> --
> View this message in context:
>
http://www.nabble.com/Integration-test-target-runs-integration-tests-twi
> ce...-tf3224387s177.html#a8958006
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/Integration-test-target-runs-integration-tests-twi
ce...-tf3224387s177.html#a8967919
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]