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:
>>> telegram:
--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_text=TEXT
Custom text, will be added for message, supports '\n' as newline, 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
--telegram_disable_stickers
Disables stickers for bot
--telegram_list_failed
Bot will send failed test names
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.
1.0.3
Fixed multiline custom text.
1.1.0
Added option for disabling stickers.
Added option for list failed tests.
1.2.0
Added test session time to report.
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_telegram-1.2.1.tar.gz.
File metadata
- Download URL: pytest_telegram-1.2.1.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
825fc963c9818a2fb7e7e5e296e2c6562cd973338cd7c0e13afc1c1407f6136e
|
|
| MD5 |
4126c765f7e3fb93adeb43cf1ab3b51c
|
|
| BLAKE2b-256 |
52c6778436ec54c3576d7b60249e43fbf700350dd1d6afcff0973020bb6b97e8
|
File details
Details for the file pytest_telegram-1.2.1-py2.py3-none-any.whl.
File metadata
- Download URL: pytest_telegram-1.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f2171316b6e4b20149498be9bd4339b01b9758013c4b90cfa770d402283166c
|
|
| MD5 |
3cbbf15c9b3f8cec934cca4e9de3682d
|
|
| BLAKE2b-256 |
28f8c6c26bccd30e794f85da68c64e7e5ed56e669bd886e5e676372e0fb0f991
|