Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »


Configuring Maven plugin in the pom.xml file

When working with failsafe, you need to update the argLine of failsafe to include the SeaLights test listener and a testStage definition.

Here is a sample configuration for failsafe with the updated argLine at line 8:

<configuration>
</configuration>
  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-failsafe-plugin</artifactId>
    <version>${maven.failsafe.plugin.version}</version>
    <configuration>
	  <argLine>${argLine} ${sealightsArgLine} -Dsl.testStage="Integration Tests"</argLine>
      <includes>
        <include>**/IT/**/*Test*</include>
      </includes>
    </configuration>
    <executions>
      <execution>
        <goals>
          <goal>integration-test</goal>
          <goal>verify</goal>
        </goals>
      </execution>
    </executions>
  </plugin>


As the integration tests usually run against a server, you also need to set it up with the SeaLights test listener as a javaagent

See 'Java Command Reference - Installing test listener as Java Agent' for more parameter values and information

  • No labels