Skip to main content
hitspec can send notifications to Slack and Microsoft Teams when tests complete. This is especially useful for CI/CD pipelines to alert teams about test failures.

Supported Services

Quick Start

Notification Triggers

Control when notifications are sent with --notify-on:

Slack Configuration

The Slack notification includes:
  • Pass/fail summary with test counts
  • Duration
  • Environment name
  • Failed test details (names, files, errors)

Teams Configuration

The Teams notification uses Adaptive Cards and includes the same information as Slack notifications.

Multiple Services

Send to both Slack and Teams simultaneously:

CI/CD Example

Store webhook URLs in environment variables or CI/CD secrets. Never commit them to your repository.
Last modified on February 10, 2026