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
json
{
"collect": {
...
"cucumber": {
"enabled": true,
"include": [
"**/*cucumber.json"
]
}
...
}
}
Metadata
You can attach metadata to Cucumber test results by configuring the metadata
section:
json
{
"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.
json
{
"collect": {
...
"cucumber": {
"exclude": [
"**/*excluded.json",
"/any/excluded/glob/**/"
]
}
...
}
}