To me these look the same, can you point out where I went wrong? -----Original Message----- From: Bashar Abdul Jawad [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 14, 2007 2:47 PM To: 'Maven Users List' Subject: RE: [m2] Integration-test target runs integration tests twice...
Sorry, I had a small mistake in my pom, the correct version is : <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <forkMode>none</forkMode> <childDelegation>true</childDelegation> <skip>true</skip> </configuration> <executions> <execution> <id>test-phase</id> <phase>test</phase> <goals> <goal>test</goal> </goals> <configuration> <skip>false</skip> <includes> <include>**/ *Utest.java</include> </includes> </configuration> </execution> <execution> <id>integration-test-phase</id> <phase>integration-test</phase> <goals> <goal>test</goal> </goals> <configuration> <skip>false</skip> <includes> <include>**/*Itest.java</include> </includes> </configuration> </execution> </executions> </plugin> -----Original Message----- From: Bashar Abdul Jawad [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 14, 2007 12:44 PM To: 'Maven Users List' Subject: RE: [m2] Integration-test target runs integration tests twice... Hi, This is not a bug, your pom is not configured correctly. Try this in your POM file: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <forkMode>none</forkMode> <childDelegation>true</childDelegation> <skip>true</skip> </configuration> <executions> <execution> <id>test-phase</id> <phase>test</phase> <goals> <goal>test</goal> </goals> <configuration> <skip>false</skip> <excludes> <include>**/ *Utest.java</include> </excludes> </configuration> </execution> <execution> <id>integration-test-phase</id> <phase>integration-test</phase> <goals> <goal>test</goal> </goals> <configuration> <skip>false</skip> <includes> <include>**/*Itest.java</include> </includes> </configuration> </execution> </executions> </plugin> ----Original Message----- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 14, 2007 8: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: users@maven.apache.org 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] --------------------------------------------------------------------- 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]