https://github.com/treussart/pytest-zulip
https://github.com/treussart/pytest-zulip
pytest pytest-plugin zulip
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/treussart/pytest-zulip
- Owner: treussart
- Created: 2022-01-30T06:03:17.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-07T13:43:37.000Z (about 4 years ago)
- Last Synced: 2025-12-17T14:37:07.807Z (7 months ago)
- Topics: pytest, pytest-plugin, zulip
- Language: Python
- Homepage:
- Size: 28.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pytest-zulip
Pytest report plugin for [Zulip](https://zulip.com/)
Allow to send notification on Zulip chat product.
## installation
pip install pytest-zulip
## Configure via env var
ZULIP_URL="https://x.zulipchat.com/api/v1/messages"
ZULIP_BOT_EMAIL_ADDRESS="bot@x.zulipchat.com"
ZULIP_BOT_API_KEY="API_KEY"
ZULIP_TOPIC="TOPIC"
ZULIP_STREAM="STREAM"
Optional:
ZULIP_ELLIPSIS_CHAR="…"
ZULIP_ONLY_ON_FAILED=1
## Add option to send message
pytest --notify-zulip
## Modify content via hook
def pytest_zulip_create_content(session: Session, exitstatus: Union[int, ExitCode]) -> str:
reporter = session.config.pluginmanager.get_plugin('terminalreporter')
return str(reporter.stats.get('passed', []))
## Dev
### Change version
edit
pytest_zulip/__init__.py
commit
git commit -m "v0.1.0"
tag
git tag v0.1.0
### Build package
python setup.py sdist bdist_wheel
pip install twine
twine upload dist/*