ryanrosello-og / playwright-slack-report

Publish your Playwright test results to your favourite Slack channel(s).
MIT License
95 stars 28 forks source link

[Question] How to send message to different channels with different sendResults #69

Closed SlawomirMankaGtxn closed 9 months ago

SlawomirMankaGtxn commented 11 months ago

What I am trying to achieve is to send notifications to two channels but with different sendResults: 'automation-tests' -> always 'monitoring' -> on-failure

One channel will get messages only when tests fail, but the second should get all reports whether they are failing or not. I tried to create two similar reporters with different channels and sendResults but it won't work as I expected (send two messages to the first channel )

Is there a way to achieve it?

mickael-h commented 11 months ago

Same question here, albeit slightly different. We would like to send successes to a specific channel and failures to another channel. "test-success" -> on-success "test-failure" -> on-failure

ryanrosello-og commented 11 months ago

this is a good idea, currently not supported though. I will work to implement this for you

m-kusnierz commented 9 months ago

@ryanrosello-og I hope it's ok to contribute to the development of this awesome reporter. I took the opportunity to add the functionality described in this issue in the PR https://github.com/ryanrosello-og/playwright-slack-report/pull/82

ryanrosello-og commented 9 months ago

This has been released in v1.1.60 Thanks @m-kusnierz 👍