pytest-slack
Pytest to Slack reporting plugin
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-slackuv
uv add pytest-slackpoetry
poetry add pytest-slackInstalling 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
Tags
More Testing packages
Pluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
virtualenvvirtualenv creates isolated Python environments…
permissive · top 100 on PyPI
coverageCoverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
pytest-asynciopytest-asyncio is a pytest plugin that enables…
permissive · top 1,000 on PyPI
pytest-json-ctrfA pytest plugin that generates test reports in…
permissive · top 1,000 on PyPI
pytest-messengerA pytest plugin that sends test results to…
permissive · top 5,000 on PyPI
slackwebSends messages to Slack channels via incoming…
permissive · top 15,000 on PyPI
pytest-emojiAdds emoji indicators to pytest test result…
permissive · top 15,000 on PyPI
luigi-monitorSends summary Slack notifications when Luigi…
permissive · top 15,000 on PyPI
pytest-htmlGenerates HTML reports for pytest test results,…
copyleft · top 1,000 on PyPI
pytest-loggingA pytest plugin that configures Python logging…
permissive · top 15,000 on PyPI
pytest-xmlA pytest plugin that generates XML output from…
unclear · top 15,000 on PyPI
qase-pytestA pytest plugin that reports test results to…
permissive · top 15,000 on PyPI
pytest-instafailA pytest plugin that displays test failures and…
permissive · top 5,000 on PyPI
pytest-sentryA pytest plugin that sends test failure and…
permissive · top 15,000 on PyPI