Skip to content

Targets

Target represents a specific platform where you want to share your test results, such as Slack or Microsoft Teams.

Did you know?

We can publish the same test results to multiple targets by using the targets array.

Supports

Target types.

Slack

Teams (Microsoft Teams)

Chat (Google Chat)

InfluxDB

Custom

Syntax

json
{
  "name": "slack",
  "condition": "fail",
  "inputs": {}
}
  • name (string) - name of the target.

    slack, teams, chat, custom, delay

  • condition? (condition) - condition of execute the target.
  • inputs? (object) - custom inputs to run the target.
  • extensions? (extensions[]) - list of extensions to be enabled.

Config

Sample config file.

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

Released under the MIT License.