Slack
Setup
- Create a Slack Incoming Webhook
- Set the webhook URL as an environment variable or pass it via flag
Configuration
| Flag | Env Var | Description |
|---|---|---|
--slack-webhook | SLACK_WEBHOOK | Webhook URL (required) |
--slack-channel | SLACK_CHANNEL | Override default channel |
--notify-on | HITSPEC_NOTIFY_ON | When to notify: always, failure, success, recovery |
What You Get
The Slack notification includes:- Color-coded attachment (green for pass, red for fail)
- Test count summary (total, passed, failed)
- Duration
- Environment name
- Failed test details with error messages
Microsoft Teams
Setup
- Create a Teams Incoming Webhook
- Set the webhook URL as an environment variable or pass it via flag
Configuration
| Flag | Env Var | Description |
|---|---|---|
--teams-webhook | TEAMS_WEBHOOK | Webhook URL (required) |
--notify-on | HITSPEC_NOTIFY_ON | When to notify |
What You Get
The Teams notification uses an Adaptive Card with:- Summary title with pass/fail status
- Column layout with test counts
- Failed test details
- Timestamp footer