pytest-messenger
Pytest to Slack reporting plugin
What it is and what it does
pytest-messenger is a pytest plugin that automatically sends test execution results to team messaging platforms. It acts as a bridge between your test suite and communication tools like Slack or Ding Talk, allowing test outcomes to be reported directly into channels where your team already works. The plugin depends only on requests and works with Python 3.6 and later.
Typical usage involves installing the plugin, configuring a webhook URL for your chosen messenger, and then running pytest normally—the plugin intercepts test completion and pushes a summary to your configured channel. This eliminates the need to manually check CI logs or wait for email notifications, keeping test status visible in real-time team communication.
Use it for:
- Notify a Slack channel when a test suite completes, so team members see results without checking CI logs
- Send Ding Talk notifications for test failures in a shared team group chat
- Integrate pytest results into existing team messaging workflows during development
- Provide immediate feedback on test status during continuous integration pipelines
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A pytest plugin that sends test results to messaging platforms like Slack and Ding Talk, integrating test reporting directly into team communication channels.
Yes, if you use Slack or Ding Talk and want test results visible in team channels. The plugin is production-stable, actively maintained, has low install friction, and carries no security vulnerabilities. The single-dependency design and permissive MIT license make it safe to adopt. Install it if your team workflow centers on these messaging platforms; skip it if you rely on email or other notification channels.
Install
pytest-messenger on PyPI
pip
pip install pytest-messengeruv
uv add pytest-messengerpoetry
poetry add pytest-messengerInstalling pytest-messenger
Before you install
Low friction installation as a pure-Python wheel with a single runtime dependency (requests). Actively maintained with recent commits and marked as production-stable.
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
Quickstart
pip install pytest-messenger
# Configure in pytest.ini or via CLI:
pytest --slack-webhook=https://hooks.slack.com/... test_file.py
Requires Python >= 3.6 and a valid webhook URL for your chosen messenger platform (Slack or Ding Talk).
Verify before relying
- Exact configuration syntax and available CLI options for each messenger platform
- Whether Telegram support mentioned as 'soon' has been implemented since last release
- Performance impact when sending results to external messaging services
Package facts
| License | MIT license (permissive) |
| Python support | supports the current Python release (>=3.6) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — requests |
| Maintenance | actively maintained — 1,359 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,208,436/month — #3,209 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pytest_messenger-3.3.0-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-slackA pytest plugin that sends test results to…
permissive · top 15,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
dingtalk-streamPython SDK for building DingTalk chatbots and…
permissive · top 15,000 on PyPI
slackwebSends messages to Slack channels via incoming…
permissive · top 15,000 on PyPI
pytest-htmlGenerates HTML reports for pytest test results,…
copyleft · top 1,000 on PyPI
pytest-sentryA pytest plugin that sends test failure and…
permissive · top 15,000 on PyPI
pytest-cppA pytest plugin that discovers and runs C++…
permissive · top 15,000 on PyPI
pytest-custom-exit-codeA pytest plugin that lets you customize the…
permissive · top 5,000 on PyPI
pytest-instafailA pytest plugin that displays test failures and…
permissive · top 5,000 on PyPI