Pytest to Slack reporting plugin
Project description
pytest-messenger
ex pytest-slack
Pytest to Slack reporting plugin
Free software: MIT license
Documentation: https://pytest-messenger.readthedocs.io.
Requirements
Requests
Installation
You can install “pytest-messenger” via pip:
$ pip install pytest-messenger
Usage
Setup slack hook
Use this plugin by running pytest normally and use the following 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
--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
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.
Credits
[ ~ Dependencies scanned by PyUp.io ~ ]
History
1.0.1 (2019-04-18)
First release on PyPI.
2.1.2 (2020-02-10)
Stable release.
Credits
Development Lead
Contributors
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytest-messenger-3.0.0.tar.gz.
File metadata
- Download URL: pytest-messenger-3.0.0.tar.gz
- Upload date:
- Size: 13.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c06e428e524adcbbc052eca717a19a782375b7ea1de383fa5db2e77587361898
|
|
| MD5 |
73425fce7e218aee9857d5ad7088b91f
|
|
| BLAKE2b-256 |
b2fa521b1980979c2668e4c37201f0c2595b59c2e90cfef528e460345b59f916
|
File details
Details for the file pytest_messenger-3.0.0-py2.py3-none-any.whl.
File metadata
- Download URL: pytest_messenger-3.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d99f4b76d9b235b9194cedbb4cbff23a73abb67916dfc440041c15283846e80a
|
|
| MD5 |
160eb246021c53b62115f11f6f3e2689
|
|
| BLAKE2b-256 |
b5c30350d7e349b35b1c96f2d375031576fc79fc8145308584ad9ccf61dba307
|