Hi,

I'm running robot framework tests from maven using the rf maven plugin -
http://code.google.com/p/robotframework-maven-plugin/. The plugin works
fine except that it fails my build and prevents post-integration-test from
running and post-integration-test is where I tear down my environment.

This is how the failsafe plugin is configured.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
 <artifactId>maven-failsafe-plugin</artifactId>
<version>2.12</version>
 <executions>
<execution>
<id>integration-test</id>
 <goals>
<goal>integration-test</goal>
</goals>
 </execution>
<execution>
<id>verify</id>
 <goals>
<goal>verify</goal>
</goals>
 </execution>
</executions>
</plugin>

And this is how I run the rf plugin.
<plugin>
<groupId>com.googlecode.robotframework-maven-plugin</groupId>
 <artifactId>robotframework-maven-plugin</artifactId>
<version>1.1.2-SNAPSHOT</version>
 <executions>
<execution>
<phase>integration-test</phase>
 <goals>
<goal>run</goal>
</goals>
 </execution>
</executions>
</plugin>

I can clearly see in the logs that the failsafe plugin is run but for some
reason the rf plugin bypasses the failsafe plugin. This makes me think that
I need to change the rf plugin to be failsafe compatible. Am I right or
completely off the mark?

Thanks,
Gaurav

P.S. The rf plugin throws a MojoExecutionException when there are test
failures.

Reply via email to