XUnit
Buildnote CLI can collect XUnit XML test results and submit them to the buildnote service. XUnit is commonly used by .NET and Microsoft frameworks.
Configuration
To enable collection of XUnit test results add the following section to buildnote.json config file
json
{
"collect": {
...
"xunit": {
"enabled": true,
"include": [
"**/*xunit.xml"
]
}
...
}
}Metadata
You can attach metadata to XUnit test results by configuring the metadata section:
json
{
"collect": {
...
"xunit": {
"enabled": true,
"include": [
"**/*xunit.xml"
],
"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": {
...
"xunit": {
"exclude": [
"**/*excluded.xml",
"/any/excluded/glob/**/"
]
}
...
}
}