Skip to content

NUnit ​

The Buildnote CLI collects NUnit XML test results (v2.x and v3.x) and sends them to Buildnote. NUnit is commonly used with .NET and Microsoft frameworks.

Configuration ​

To collect NUnit test results, add this section to your buildnote.json config file:

json
{
  "collect": {
    ...
    "nunit": {
      "enabled": true,
      "include": [
        "**/*nunit.xml"
      ]
    }
    ...
  }
}

Metadata ​

To attach your own metadata to NUnit test results, add a metadata section:

json
{
  "collect": {
    ...
    "nunit": {
      "enabled": true,
      "include": [
        "**/*nunit.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": {
    ...
    "nunit": {
      "exclude": [
        "/any/excluded/glob/**/"
      ]
    }
    ...
  }
}

Buildnote Limited
Registered in England and Wales, Reg: 16140412