Skip to content

Cucumber BDD

Cucumber is available for most mainstream programming languages. We recommend choosing an implementation for the same platform or programming language as the production code.

Formats

For cucumber there are many output formats, we support two of them:

We recommend using the default Cucumber JSON format because it has the least data loss. The XML format, for example, does not support embedding screenshots to your formatter.

Installation

The coolest thing about cucumber is that it is available for so many different programming languages. Look up yours here and get started:

Generating a result file

See: https://cucumber.io/docs/installation/

Look at the header Custom formatters, and use that command with json as the formatter.

For example:

cucumber --format json

By only running it in a specific format, you're not there yet. You need to actually put it into a file. Best is to use --out for that:

cucumber --format json --out result.json

Importing your result to calliope

At this point, you have a file to upload. You can either upload it manually or set up an API call to our API endpoint.