Skip to main content

Pytest plugin for sending report message of marked tests execution

Project description


Pytest-message is a pytest extension for reporting to various messangers.

Pytest-message gives an ability to send report message of test status for only marked tests.


pip install pytest-message


Currently pytest-message integrates with slack only(other popular messengers integration in progress)

In order to receive messages you need to define listener and pass list of listeners to notify decorator

from pytest_message.listeners import SlackListener
from pytest_message import notify

slack_listener = SlackListener(token="slack_secret_token", chat='chat_id')

def test_sum():
    assert 1 + 1 == 2

You may pass as much listeners as you want to get report messages to all listeners.


In order to start tests with Pytest-Message you must provide --notify flag:

pytest tests --notify

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest-message-0.1.3.tar.gz (8.2 kB view hashes)

Uploaded source

Built Distribution

pytest_message-0.1.3-py3-none-any.whl (9.7 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page