hongbin ma
2015-05-25 14:06:12 UTC
hi, I'm new to failsafe,
i'm starting to move a test case from unit test to integration test, and
i'm using
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<executions>
<execution>
<id>integration-tests</id>
<phase>integration-test</phase>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
âin my pom.
When I run "mvn verify", I âfound my new integration test ran twice.
I realized that both the "integration-test" and "verify" goal may
contribute to it.
Should I remove the line "<goal>verify</goal>" in pom?
But It seems most failsafe tutorials keeps both goals in their poms.
The question is, what are these two goals for?
The official explanation:
*integration-test for running the integration tests.*
*verify for checking the results of the integration tests.*
seems so vague to me.
Can any expert give me a concrete example?
thanks!
i'm starting to move a test case from unit test to integration test, and
i'm using
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<executions>
<execution>
<id>integration-tests</id>
<phase>integration-test</phase>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
âin my pom.
When I run "mvn verify", I âfound my new integration test ran twice.
I realized that both the "integration-test" and "verify" goal may
contribute to it.
Should I remove the line "<goal>verify</goal>" in pom?
But It seems most failsafe tutorials keeps both goals in their poms.
The question is, what are these two goals for?
The official explanation:
*integration-test for running the integration tests.*
*verify for checking the results of the integration tests.*
seems so vague to me.
Can any expert give me a concrete example?
thanks!
--
Regards,
*Bin Mahone | 马措実*
Apache Kylin: http://kylin.io
Github: https://github.com/binmahone
Regards,
*Bin Mahone | 马措実*
Apache Kylin: http://kylin.io
Github: https://github.com/binmahone