Cucumber
The Buildnote CLI collects Cucumber JSON test results and sends them to Buildnote. Cucumber is an acceptance test framework for behavior-driven development (BDD), available for many languages.
Configuration
To collect Cucumber test results, add this section to your buildnote.json config file:
json
{
"collect": {
...
"cucumber": {
"enabled": true,
"include": [
"**/*cucumber.json"
]
}
...
}
}Metadata
To attach your own metadata to Cucumber test results, add a metadata section:
json
{
"collect": {
...
"cucumber": {
"enabled": true,
"include": [
"**/*cucumber.json"
],
"metadata": {
"test-user": "{{ env.USER }}",
"build-environment": "{{ env.BUILD_ENV }}"
}
}
...
}
}Excluding paths
To leave some paths out of collection, list their globs under exclude:
json
{
"collect": {
...
"cucumber": {
"exclude": [
"**/*excluded.json",
"/any/excluded/glob/**/"
]
}
...
}
}