XUnit
The Buildnote CLI collects XUnit XML test results and sends them to Buildnote. XUnit is commonly used with .NET and Microsoft frameworks.
Configuration
To collect XUnit test results, add this section to your buildnote.json config file:
json
{
"collect": {
...
"xunit": {
"enabled": true,
"include": [
"**/*xunit.xml"
]
}
...
}
}Metadata
To attach your own metadata to XUnit test results, add a metadata section:
json
{
"collect": {
...
"xunit": {
"enabled": true,
"include": [
"**/*xunit.xml"
],
"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": {
...
"xunit": {
"exclude": [
"**/*excluded.xml",
"/any/excluded/glob/**/"
]
}
...
}
}