Examples of using SL with Cucumber tests and different testing frameworks.
Any example project may be built individually.
All examples may be built all together from the root project.
By default the example projects are built without sealights.
Similar to a regular build, the build with sealights may be done for all the examples together or to a single example.
When all the examples are built together the same application name is used for all the projects.
When a single example is built, its own application name is used.
For both plugins all the plugin parameters are defined in the root project and they are inherited by the examples.
Each example redefines the appName plugin parameter.
- The default profile executes just a regular build without sealights plugin. The maven command is executed in the same way for either root project or any sub-project.
- The profile 'sl' executes a build of a sub-project as an individual application. It is intended for a subproject build and so is not effective if applied to the root project. See the Examples section for usage.
- The profile 'sl-all' executes a build of all sub-projects with the same application name. It is intended for root recursive build of the root project. When it is applied to the sub-project, it works same as the 'sl' profile. See the Examples section for usage.
There are several properties, that are used by the sealights-maven-plugin, that should be defined in the dev.properties file, located in the root project:
- The property
tokenfile.pathshould be set to the relevant token file location. - The property
buildscanner.pathshould be set to the actual path to the build-scanner jar. - The property
testlistener.pathshould be set to the actual path to the test-listener jar.
NOTE: If the dev.properties cannot be found or has invalid values, the build proceeds without Sealights
- The Sealigts plugin parameters are defined in the root project pom; the sub-projects poms by default contain only appName parameter.
- Parameter, which is defined in the sub-project, overrides the parameter in the root project.
- When running build with profiles 'sl' or 'sl-all' the build number should be provided as system property '-Dsl.build={build value}' .
-
Build all projects as a single application. Run from the root project directory:
mvn clean install -Psl-all -Dsl.build=12345 -
Build a particular project from the root project directory:
mvn clean install -f example-java8 -Psl -Dsl.build=12345 -
Build a particular project from the project directory:
mvn clean install -Psl -Dsl.build=12345
Build with Gradle so far is not supported