Get started

Cucumber

Buildnote CLI can collect Cucumber JSON test results and submit them to the buildnote service. Cucumber is an acceptance test framework for various languages that supports behavior-driven development (BDD).

Configuration

To enable collection of Cucumber test results add the following section to buildnote.json config file

{
  "collect": {
    ...
    "cucumber": {
      "enabled": true,
      "include": [
        "**/*cucumber.json"
      ]
    }
    ...
  }
}

Metadata

You can attach metadata to Cucumber test results by configuring the metadata section:

{
  "collect": {
    ...
    "cucumber": {
      "enabled": true,
      "include": [
        "**/*cucumber.json"
      ],
      "metadata": {
        "test-user": "{{ env.USER }}",
        "build-environment": "{{ env.BUILD_ENV }}"
      }
    }
    ...
  }
}

Excluding paths

To exclude any paths from collection configure exclude section with required globs.

{
  "collect": {
    ...
    "cucumber": {
      "exclude": [
        "**/*excluded.json",
        "/any/excluded/glob/**/"
      ]
    }
    ...
  }
}

Get started today!

Ready to gain unparalleled visibility into your pipelines and testing workflows? Get started with Buildnote now and transform the way your team delivers software.

Get started