Skip to main content

Pytest to Slack reporting plugin

Project description

pytest-slack Documentation Status Updates

Pytest to Slack reporting plugin


  • Requests


You can install “pytest-slack” via pip:

$ pip install pytest-slack


  • Setup slack hook

  • Use this plugin by running pytest normally and use the following options to customize report:

>>> slack:
                        Set the channel name to report
                        Used for reporting to slack
                        Set the report link
                        Set the reporter name
  --slack_timeout=SLACK_TIMEOUT [DEFAULT = 10s ]
                        Set the timeout for sending results in seconds
  --slack_success_emoji=SLACK_SUCCESS_EMOJI [default = :thumbsup:]
                        Set emoji for a successful run
  --slack_failed_emoji=SLACK_FAILED_EMOJI [default = :thumbsdown:]
                        Set emoji for a failed run
  --slack_success_icon=SLACK_SUCCESS_ICON [default = None]
                        Set icon (a url) for a successful run. Overrides SLACK_SUCCESS_EMOJI
  --slack_failed_icon=SLACK_FAILED_ICON [default = None]
                        Set icon (a url) for a failed run. Overrides SLACK_FAILED_EMOJI


$ pytest tests –slack_hook=… –slack_channel=test_report_channel –slack_username=”Regression testing results”

All kind of problems:

Passed test:

$ pytest tests –slack_hook=… –slack_channel=test_report_channel –slack_username=”Regression testing results” –slack_report_link=http://any_address

Passed test with link:


If you encounter any problems, please file an issue along with a detailed description.


[ ~ Dependencies scanned by ~ ]


1.0.1 (2019-04-18)

  • First release on PyPI.

2.1.2 (2020-02-10)

  • Stable release.


Development Lead


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-slack-2.3.0.tar.gz (12.7 kB view hashes)

Uploaded Source

Built Distribution

pytest_slack-2.3.0-py2.py3-none-any.whl (5.4 kB view hashes)

Uploaded Python 2 Python 3

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