pytest-messenger icon indicating copy to clipboard operation
pytest-messenger copied to clipboard

Show reruns on the report if pytest-rerunfailures is installed

Open caiolopes opened this issue 4 years ago • 5 comments

If someone is using this plugin and the pytest-rerunfailures, it would be nice that it show up

https://github.com/pytest-dev/pytest-rerunfailures

caiolopes avatar Jul 22 '20 23:07 caiolopes

@caiolopes What kind of info do you expect to show up ?

LaserPhaser avatar Jul 24 '20 13:07 LaserPhaser

@LaserPhaser the amount of reruns or even better, the amount of tests which passed but required reruns (flaky tests).

What do you think?

caiolopes avatar Jul 24 '20 14:07 caiolopes

Good Idea, I will see how to implement it in a few days.

LaserPhaser avatar Jul 24 '20 17:07 LaserPhaser

@LaserPhaser I already implemented in a internal modified version of pytest-slack in a project.

I couldn't use pytest-slack directly because I just wanted flaky tests notifications only.

But the logic is almost the same, I just need to check if pytest-rerun is installed.

Can I open a PR?

caiolopes avatar Jul 24 '20 17:07 caiolopes

Sure. It's opensource :) You just make some soft better and submit PR - that's how it works

LaserPhaser avatar Jul 24 '20 17:07 LaserPhaser