pytest到slack报告插件
pytest-slack的Python项目详细描述
pytest松弛度
pytest到slack报告插件
- 自由软件:麻省理工学院许可证
- 文档:https://pytest-slack.readthedocs.io。
要求
- 请求
使用量
- 设置slack hook
- 通过正常运行pytest使用此插件,并使用以下选项自定义报表:
>>> 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
示例
$ pytest tests –slack_hook=https://hooks.slack.com/services/… –slack_channel=test_report_channel –slack_username=”Regression testing results”
各种问题:
通过测试:
$pytest tests–slack戋hook=https://hooks.slack.com/services/…–slack戋channel=test戋report戋channel–slack戋username=“回归测试结果”–slack戋report戋link=http://any戋address
通过链接测试:
问题
如果您遇到任何问题,请file an issue并附上详细说明。
历史记录
1.0.1(2019-04-18)
- pypi上的第一个版本。