skillfed

pytest-messenger

Pytest to Slack reporting plugin

pytest-messenger v3.3.0 2.2M downloads/30d#3,209 on PyPI67
Permissive license MIT license Active released

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-messenger

uv

uv add pytest-messenger

poetry

poetry add pytest-messenger

Installing 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

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

Tags

pytest slack reportingtest results to slackpytest messaging pluginding talk test notificationsci test notifications
pytest-pluginci-integrationteam-notifications

More Testing packages