pytest-dev / pytest-messenger

Pytest-messenger report plugin for all popular messengers like: Slack, DingTalk, Telegram
https://pypi.org/project/pytest-messenger
MIT License
67 stars 15 forks source link

Allow adding some text to the message #238

Closed vlad-stack closed 1 year ago

vlad-stack commented 1 year ago

I can see that we cannot change the username or icon for slack anymore https://github.com/pytest-dev/pytest-messenger/issues/125. But what we simply need is to add the test name. For example API, UI, etc.

So adding some header or test element to the body will really help. For example:

Daily API test: Passed=1 Failed=0 Skipped=0 Error=0 XFailed=0 XPassed=0

vlad-stack commented 1 year ago

And thank you for the useful package!

vlad-stack commented 1 year ago

After checking the code, found the slack_test_name option)