Pytest report plugin for Zulip
Project description
pytest-zulip
Pytest report plugin for Zulip
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="…"
Add option to send message
pytest --notify
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 -m build
twine upload dist/*
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
pytest-zulip-0.1.1.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for pytest_zulip-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d59e0db6e36a79424b25ec9b5d23356c668e68ded064a4404e1df38041d548e0 |
|
MD5 | 0e08ae47f01b96211124380fbff6da7c |
|
BLAKE2b-256 | a97bdabe9ef046a68f538ac95b55fddd98a8e1bdffbce408d906712c3b0498b4 |