Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
printablefalse


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:

Code Block
languagexml
linenumberstrue
<configuration>
</configuration>
  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-failsafe-plugin</artifactId>
    <version>${maven.failsafe.plugin.version}</version>
    <configuration>
	  <argLine>-javaagent:${sl.testListenerPath} -Dsl.token=${SL_TOKEN} -Dsl.buildSessionId="$SL_BUILD_SESSION_ID" -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>

...