Skip to content

6 Configuring Jenkins

Continuum Security edited this page May 7, 2016 · 2 revisions

Since Cucumber produces JUnit output, BDD-Security can be run and the results used by Jenkins without any additional plugins.

Minimal Configuration

Use a Gradle build task and set Cucumber options in the 'Tasks' section, e.g.:

-Dcucumber.options="--tags @authentication,@http_headers --tags ~@skip"

Add a Post-Build Action to publish JUnit test results and set the Test report XMLs to: build/reports/junit/*.xml

Better reporting

There are at least two HTML reporting plugins that can be used with Cucumber to produce good looking and easily navigable reports:

  1. Cucumber-JVM reports
  2. Bootstrap multi-test results report

Cucumber-JVM Reports

Add a Post-Build Action and set the JSON reports path to: build/reports

Bootstrap multi-test results report

Add a Post-Build Action and set the JSON reports path to: build/reports