skillfed

pytest-slack

Pytest to Slack reporting plugin

pytest-slack v2.3.1 318.2K downloads/30d#7,654 on PyPI67
Permissive license MIT license Active released

What it is and what it does

pytest-slack is a pytest plugin that integrates test execution with Slack notifications. When you run pytest with the plugin enabled, it sends a summary of your test results to a Slack channel via an incoming webhook. You configure it by passing command-line options specifying the webhook URL, channel name, and optional customizations like the reporter username, success/failure emojis, or custom icons.

The plugin is designed for CI/CD pipelines and development workflows where teams want immediate visibility into test outcomes without manually checking logs. It depends only on requests for HTTP communication and installs as a standard Python package. The project is actively maintained and has been in production use since its first release in 2019.

Use it for:

  • Notify a Slack channel when CI/CD test suites pass or fail, with custom emojis and reporter names.
  • Send regression test results to a team channel with a link to the full test report.
  • Integrate pytest into existing Slack-based development workflows for real-time test visibility.
  • Automate test result notifications in multi-team environments where Slack is the primary communication hub.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

A pytest plugin that sends test results to Slack via incoming webhooks, allowing you to report pass/fail status with customizable messages, emojis, and icons.

Yes, if you use pytest in a Slack-integrated workflow. The plugin is lightweight, actively maintained, has no security vulnerabilities, and solves a straightforward problem—getting test results into Slack without manual steps. Install friction is minimal and the MIT license poses no restrictions.

Install

pytest-slack on PyPI

pip

pip install pytest-slack

uv

uv add pytest-slack

poetry

poetry add pytest-slack

Installing pytest-slack

Before you install

Low install friction with a single runtime dependency (requests). Actively maintained as of the latest commit on 2026-08-12, with stable production status and no known vulnerabilities.

License in practice

MIT license is permissive and imposes no significant restrictions on use, modification, or distribution.

Quickstart

pip install pytest-slack

pytest tests --slack_hook=https://hooks.slack.com/services/YOUR_HOOK --slack_channel=test_channel --slack_username="Test Bot"

Requires a Slack incoming webhook URL configured in your Slack workspace before use.

Verify before relying

  • Whether the plugin works with modern pytest versions beyond those listed in classifiers (3.8 is the latest shown).
  • Current maintenance status relative to pytest's ongoing evolution and breaking changes.

Package facts

License MIT license (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies 1 — requests
Maintenance actively maintained — 2,068 days since the last release
Last repo commit
First released
Downloads 318,232/month — #7,654 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pytest_slack-2.3.1-py2.py3-none-any.whl

Keywords: pytest, py.test, slack

Development Status :: 5 - Production/StableFramework :: PytestIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishProgramming Language :: Python :: 2.7Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8

Tags

pytest slack reportingsend test results to slackpytest slack webhookslack test notificationspytest ci slack integrationautomated test reporting slack
ci-cd-integrationslack-notifications

More Testing packages