Skip to content

DingTalk

Laser edited this page Dec 16, 2020 · 1 revision
  • Setup dingtalk hook
  • Use this plugin by running pytest normally and use the following options to customize report:
>>> pytest-messenger[ding]:
    --ding_access_token=DING_ACCESS_TOKEN
    --ding_secret=DING_SECRET
    --ding_report_link=DING_REPORT_LINK
                        Set the report link
    --ding_timeout=DING_TIMEOUT
                        Set the report send timeout

Example

$ pytest --ding_access_token=token --ding_secret=secret

Report example:

https://raw.githubusercontent.com/pytest-dev/pytest-messenger/master/img/ding_result.png
Clone this wiki locally