Pytest to Slack reporting plugin
Project description
pytest-slack
Pytest to Slack reporting plugin
Free software: MIT license
Documentation: https://pytest-slack.readthedocs.io.
Requirements
Python3 version [3.5+]
Requests
Make sure you have the latest version of pytest installed for your environment
Installation
You can install “pytest-slack” via pip:
$ pip install pytest-slack
Usage
Setup slack hook
Use this plugin by running pytest normally and use the follwoing options to customize report:
>>> slack: --slack_channel=SLACK_CHANNEL Set the channel name to report --slack_hook=SLACK_HOOK Used for reporting to slack --slack_report_link=SLACK_REPORT_LINK Set the report link --slack_username=SLACK_USERNAME Set the reporter name --slack_timeout=SLACK_TIMEOUT [DEFAULT = 10s ] Set the timeout for sending results in seconds
Example
$ pytest tests –slack_hook=https://hooks.slack.com/services/… –slack_channel=test_report_channel –slack_username=”Regression testing results”
All kind of problems:
Passed test:
$ pytest tests –slack_hook=https://hooks.slack.com/services/… –slack_channel=test_report_channel –slack_username=”Regression testing results” –slack_report_link=http://any_address
Passed test with link:
Issues
If you encounter any problems, please file an issue along with a detailed description.
History
1.0.1 (2019-04-18)
First release on PyPI.
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
Built Distribution
Hashes for pytest_slack-1.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 947f45e3ee4db44eaac0a9f8c08796bf1093333a52ebec9664f4d4b755e00095 |
|
MD5 | 7c4dad0e372937b586efbc1446e44c13 |
|
BLAKE2b-256 | 729cb724df5e45a02f853237fe5292044177c55d17632fc74fde5e13cc40e10b |