Dart/Flutter
Buildnote CLI can collect Dart test results in JSON format, and submit them to the buildnote service
Configuration
To enable collection of dart test results add the following section to buildnote.json config file
json
{
"collect": {
...
"dart": {
"enabled": true,
"include": [
"**/dart-test*.json"
]
}
...
}
}Metadata
You can attach metadata to Dart test results by configuring the metadata section:
json
{
"collect": {
...
"dart": {
"enabled": true,
"include": [
"**/dart-test*.json"
],
"metadata": {
"test-user": "{{ env.USER }}",
"flutter-version": "{{ env.FLUTTER_VERSION }}"
}
}
...
}
}Excluding paths
To exclude any paths from collection configure exclude section with required globs.
json
{
"collect": {
...
"dart": {
"exclude": [
"/any/excluded/glob/**/"
]
}
...
}
}