pytest plugin for reporting to slack
Project description
Pytest plugin for easy reporting to slack
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
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.
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.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7161cf5a97198976f4ddebc005a91b19cd515bb1ba8f47bb620b0a77a7150d03 |
|
MD5 | 4b2d5e0aebf28b7fd7b98ef9d546ffea |
|
BLAKE2b-256 | bed8501c599ec2f65e79e36299a529578b0620ae1c1bc56d2bb6619933f98043 |