Dart/Flutter
The Buildnote CLI collects Dart test results in JSON format and sends them to Buildnote.
Configuration
To collect Dart test results, add this section to your buildnote.json config file:
json
{
"collect": {
...
"dart": {
"enabled": true,
"include": [
"**/dart-test*.json"
]
}
...
}
}Metadata
To attach your own metadata to Dart test results, add a metadata section:
json
{
"collect": {
...
"dart": {
"enabled": true,
"include": [
"**/dart-test*.json"
],
"metadata": {
"test-user": "{{ env.USER }}",
"flutter-version": "{{ env.FLUTTER_VERSION }}"
}
}
...
}
}Excluding paths
To leave some paths out of collection, list their globs under exclude:
json
{
"collect": {
...
"dart": {
"exclude": [
"/any/excluded/glob/**/"
]
}
...
}
}