Pytest to Telegram reporting plugin
Project description
pytest-telegram
Pytest to Telegram reporting plugin
Free software: MIT license
Requirements
Requests
Installation
You can install “pytest-telegram” via pip:
$ pip install pytest-telegram
Usage
Use this plugin by running pytest normally and use the following options to customize report:
>>> slack: --telegram_id=CHAT_ID Id of telegram chat --telegram_token=BOT_TOKEN Telegram Bot token --telegram_report_url=URL Link for test report, optional --telegram_custom_test=TEXT Custom text, will be added for message, optional --telegram_success_sticker_id=FILE_ID File id of telegram sticker which will be attach to Success report --telegram_fail_sticker_id=FILE_ID File id of telegram sticker which will be attach to Failed report
Example
$ pytest ./tests –telegram_id=100559633 –telegram_token=123:qwe –telegram_report_url=http://path.to.report –telegram_custom_text=”This is custom text”
Success report:
Failed report:
Issues
If you encounter any problems, please file an issue along with a detailed description.
History
1.0.0
Initial release.
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-telegram-1.0.1.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for pytest_telegram-1.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0365361c066ef13f03c00653f5ce5b66d671ea044acdf94af59777390e126ad |
|
MD5 | bc9035944853e706d85bc21d90ff8c59 |
|
BLAKE2b-256 | a688952d2b31eacc9c84c0ddc9a178bae7cce14cd0c8d0076b907ff7089ab44a |