Get started

JUnit

Buildnote CLI can collect JUnit XML test results and submit them to the buildnote service. JUnit XML is used by JVM ecosystems, JavaScript testing frameworks (Mocha, Jest), and many other testing tools.

Configuration

To enable collection of JUnit test results add the following section to buildnote.json config file

{
  "collect": {
    ...
    "junit": {
      "enabled": true,
      "include": [
        "**/TEST-*.xml"
      ]
    }
    ...
  }
}

Metadata

You can attach metadata to JUnit test results by configuring the metadata section:

{
  "collect": {
    ...
    "junit": {
      "enabled": true,
      "include": [
        "**/TEST-*.xml"
      ],
      "metadata": {
        "test-user": "{{ env.USER }}"
      }
    }
    ...
  }
}

Excluding paths

To exclude any paths from collection configure exclude section with required globs.

{
  "collect": {
    ...
    "junit": {
      "exclude": [
        "/any/excluded/glob/**/"
      ]
    }
    ...
  }
}

Get started today!

Ready to gain unparalleled visibility into your pipelines and testing workflows? Get started with Buildnote now and transform the way your team delivers software.

Get started