Git Product home page Git Product logo

sl.java.examples.cucumber's Introduction

SL-Cucumber-JVM examples

Examples of using SL with Cucumber tests and different testing frameworks.

Build types

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.

Build with 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.

Maven examples

Profiles

  1. 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.
  2. 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.
  3. 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.

Pom Settings

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:

  1. The property tokenfile.path should be set to the relevant token file location.
  2. The property buildscanner.path should be set to the actual path to the build-scanner jar.
  3. The property testlistener.path should 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

Sealigts Plugin Parameters

  1. The Sealigts plugin parameters are defined in the root project pom; the sub-projects poms by default contain only appName parameter.
  2. Parameter, which is defined in the sub-project, overrides the parameter in the root project.
  3. When running build with profiles 'sl' or 'sl-all' the build number should be provided as system property '-Dsl.build={build value}' .

Examples

  1. Build all projects as a single application. Run from the root project directory:

    mvn clean install -Psl-all -Dsl.build=12345
    
  2. Build a particular project from the root project directory:

    mvn clean install -f example-java8 -Psl -Dsl.build=12345  
    
  3. Build a particular project from the project directory:

    mvn clean install -Psl -Dsl.build=12345  
    

Build with Gradle so far is not supported

sl.java.examples.cucumber's People

Contributors

alasch2 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.