Pytest plugin for sending report message of marked tests execution
Project description
Pytest-Message
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.
Installation
pip install pytest-message
Example
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')
@notify([slack_listener])
def test_sum():
assert 1 + 1 == 2
You may pass as much listeners as you want to get report messages to all listeners.
Launch
In order to start tests with Pytest-Message you must provide --notify
flag:
pytest tests --notify
Project details
Release history Release notifications | RSS feed
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.4.tar.gz
(8.3 kB
view hashes)
Built Distribution
Close
Hashes for pytest_message-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f04adc4569367993e78e0eba26525d91bed22a669c7b42aa20e0cc45719399d1 |
|
MD5 | aab98c3521f6352b0c9f3321b9df3412 |
|
BLAKE2b-256 | db20166932b5a38f97d6597d552696350f46c4348060daf645adb3fbe9e3e530 |