The following plugin provides functionality available through Pipeline-compatible steps. Read more about how to integrate steps into your Pipeline in the Steps section of the Pipeline Syntax page.

For a list of other such plugins, see the Pipeline Steps Reference page.

Cucumber reports

cucumber: Cucumber reports

Publishes Cucumber results

This plugin requires that you use cucumber and run using JUnit as well as setting cucumber to generate a json report (you must give the json file the suffix .json). The plugin uses the json report to produce html reports that are available from jenkins on the build page after a build has run.

	package net.masterthought.example;

	import cucumber.junit.Cucumber;
	import org.junit.runner.RunWith;

	@RunWith(Cucumber.class)
	@Cucumber.Options(format = {"pretty", "html:target/cucumber", "json:target/cucumber.json"})
	public class ATMTest {
	}
  • fileIncludePattern
    • Type: String
  • buildStatus (optional)
    • Type: String
  • classifications (optional)
      Array/List
      Nested Object
    • key
      • Type: String
    • value
      • Type: String
  • classificationsFilePattern (optional)
    • Type: String
  • failedFeaturesNumber (optional)
    • Type: int
  • failedScenariosNumber (optional)
    • Type: int
  • failedStepsNumber (optional)
    • Type: int
  • fileExcludePattern (optional)
    • Type: String
  • jsonReportDirectory (optional)
    • Type: String
  • parallelTesting (optional)
    • Type: boolean
  • pendingStepsNumber (optional)
    • Type: int
  • skippedStepsNumber (optional)
    • Type: int
  • sortingMethod (optional)
    • Type: String
  • trendsLimit (optional)
    • Type: int
  • undefinedStepsNumber (optional)
    • Type: int

Was this page helpful?

Please submit your feedback about this page through this quick form.

Alternatively, if you don't wish to complete the quick form, you can simply indicate if you found this page helpful?

    


See existing feedback here.