-
Notifications
You must be signed in to change notification settings - Fork 243
Stop attaching test reruns to final test report entries #387
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
Conversation
IMHO retries should be visible, they may include essential debugging information, in fact we should also make them visible in the UI with some other color than green. |
I agree. But I think it might be worth doing a bugfix release, and then adding the functionality you mention in a separate release. |
@ssbarnea the retries are visible. The issue is that without this PR we take all the retry data and add it to the original run. With this PR the data for each retry row is not added to the original run. Does that make sense? For example. Here is what a report off of v3.0.0 looks like: Here is the same test run used to generate the above report but off of this PR instead: You can see that the retry rows still exist and have the proper data. We aren't, however, adding everything into the final pass/fail run of the retry as we are off of head though which is a bug. This didn't happen in 2.1.1 and shouldn't happen IMO. |
@BeyondEvil, that functionality already exists, please see the above comment |
Yepp, you're right! 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the time/duration stuff in this PR?
I moved time formatting to the |
And seeing that we needed to touch the logic anyway as part of this change ( line 718 in the original version of plugin.py ), I figured we may as well move it to the proper place instead of moving it but keeping a known bug that we'd have to fix for an unreleased feature later on |
Would it makes sense to have that as a separate PR? Since it's (sort of) unrelated to reruns? 🤔 |
We could, but I think that would make this change dirty since it would look like this:
And we would also be doing it immediately below on https://github.com/pytest-dev/pytest-html/blob/master/src/pytest_html/plugin.py#L717 which is confusing to read. I'd argue this is related as this PR is really fixing all postprocessing related to dynamic reruns, and this move of the formatting to It seems like a big PR but all I did was move a function from one place to another and it's call from one place to another so it's 2 lines. The method is the same |
Fair enough. 😊 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Send it! 🚀
Thanks @BeyondEvil! I'll merge in tomorrow assuming @ssbarnea has no issues with it. Then I'll release |
* treat rerun entries as seperate test runs * Add changelog entry * fix a typo * remove debug code * fix flaky test on mac
Stop attaching the rerun entries created by pytest-rerunfailures to reports.
When we introduced our post processing step we incorrectly lumped in rerunfailures reruns ( see #271 ), which caused this issue. To fix it, we now treat each rerun as its own test which is what the original behavior was. I confirmed that behavior is the same as v2.1.1 now.
I'd also like to make a release after this merges, since this is a bugfix for the
v3.0.0
release if no one objectsCloses #374