/
Running Tests (Only) using Sealights Maven plugin

Running Tests (Only) using Sealights Maven plugin

 

When executing Tests via Maven you do not need to provide the buildSessionId generated in a previous step via an environment variable or a text file.

Please make sure the Sealights Test Listener is deployed to capture coverage of the application to be tested by this script.
For Java application, you can refer to Using Java Agents - Installing Test Listener as Java Agent

You can use the SeaLights agent to update your maven pom.xml with the needed changes to run your Maven build using the Maven Plugin

Configuring the SeaLights Maven plugin using a JSON file

Create a JSON configuration file with the following parameters in order to provide the necessary configuration fields to the SeaLights Maven plugin:

  1. token or tokenFile - set with a token or a file containing the token obtained from the SeaLights dashboard

  2. createBuildSessionId - Set to false because Build Session ID was created externally

  3. buildSessionId or buildSessionIdFile - (Not to be used IF using labId) Set with a build session id or a file containing the build session id created by the config step

  4. executionType - Provide which executions need to handled by the Maven plugin

    • testsonly - Execute only the test listener

  5. testStage - Set the name of the test stage as will be displayed on the SeaLights dashboard