Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ding.sender()能否扩展下,支持:自定义data,发送指定的内容? #125

Open
jingyuezijing opened this issue Jul 7, 2022 · 3 comments

Comments

@jingyuezijing
Copy link

jingyuezijing commented Jul 7, 2022

因为gitlab CI上执行结束后,发送信息,希望发送自定义的一些内容:
如:用例通过率,代码覆盖率,以及pipeline的链接等信息
预期:
建议扩展:希望可支持完全自定义(即覆盖内容),或者追加自定义内容两种方式

@defnngj
Copy link
Collaborator

defnngj commented Jul 11, 2022

好建议, 接下来会实现lark消息的支持,到时候一并支持钉钉消息的自定义。

@jingyuezijing
Copy link
Author

好建议, 接下来会实现lark消息的支持,到时候一并支持钉钉消息的自定义。

希望可支持:完全自定义(即覆盖内容),或者追加自定义内容两种方式。

@defnngj
Copy link
Collaborator

defnngj commented Jul 12, 2022

seldom 不需要升级,只升级 XTestRunner==1.4.4 版本

参考文档:https://github.com/SeldomQA/XTestRunner/blob/master/docs/send_notice.md#%E5%8F%91%E9%80%81%E9%92%89%E9%92%89

sender() 增加两个参数:

  • append: 在发送的消息中追加一些消息,markdown的字符串格式, 例如"\n#标题 \nid \n名字"
  • text: 替换要发送的消息,markdown的字符串格式。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants