Skip to content

Functional Test Results ​

TestBeats supports the following automation test result formats:

✅ JUnit

✅ Cucumber (json)

✅ TestNG

✅ Mocha (json & mochawesome)

✅ xUnit

✅ NUnit

✅ MSTest

TIP

Most automation testing frameworks, such as Selenium, Cypress, Playwright, Webdriver.io, PyTest, can output test results in standardized formats like JUnit XML. This tool leverages these standardized formats to ensure compatibility across different testing frameworks. This means you can seamlessly integrate your existing testing infrastructure with the testbeats without the need for extensive modifications.

Syntax ​

Command Line Arguments ​

  • --junit (string) - path to the junit test result file (xml format).
  • --mocha (string) - path to the mocha test result file (json format).
  • --testng (string) - path to the testng test result file (xml format).
  • --cucumber (string) - path to the cucumber test result file (json format).
  • --xunit (string) - path to the xunit test result file (xml format).
  • --nunit (string) - path to the nunit test result file (xml format).
  • --mstest (string) - path to the mstest test result file (xml format).

Configuration File ​

json
{
  "type": "testng",
  "files": ["path/to/results-file.xml"]
}
  • type (string) - name of the test results file format.

    mocha, testng, junit, xunit, cucumber

  • files (string[]) - path to the test result files. (allows * wild card)

Examples (Command Line Mode) ​

Single Result File ​

Sample command line arguments for a TestNG result file.

bash
npx testbeats@latest publish --testng path/to/testng-results.xml --teams '<incoming-webhook-url>'

Multiple Result Files ​

Merges multiple results into a single result.

Only * wildcard is supported by this tool.

bash
npx testbeats@latest publish --cucumber path/to/results-*.json --teams '<incoming-webhook-url>'

Examples (Configuration Mode) ​

Single Result File ​

Sample config file for a TestNG result file.

json
{
  "targets": [
    {
      "name": "teams",
      "inputs": {
        "url": "<incoming-webhook-url>"
      }
    }
  ],
  "results": [
    {
      "type": "testng",
      "files": ["path/to/testng-results.xml"]
    }
  ]
}

Multiple Result Files ​

Merges multiple results into a single result.

Only * wildcard is supported by this tool.

json
{
  "targets": [
    {
      "name": "teams",
      "inputs": {
        "url": "<incoming-webhook-url>"
      }
    }
  ],
  "results": [
    {
      "type": "testng",
      "files": ["path/to/cypress-results-*.xml"]
    }
  ]
}

Released under the MIT License.