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