-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Add summary for xfails with -rxX option #11574
Conversation
Hi @sturmf, Thanks for this, yes definitely this would be something we want to incorporate. Please go ahead with the refactoring and tests. Regarding this closing #11233, one aspect brought up in that issue is the traceback of xfail/xpass tests, which are not handled here, correct? If so I'm fine with leaving that out from this PR, we just need to update the issue later to mention that aspect is still not implemented. |
Hey @sturmf, cool to see you working on this. |
@nicoddemus Regarding " traceback of xfail/xpass tests, which are not handled here, correct?"
The one thing I see missing is the assert output is not reported in the summary at the end, but the reason for xfail is XFAIL test name - assertion - reason In context with Fail and Xpass:
@nicoddemus Should the reason be before the assert? Should a separator be more obvious, or is a dash fine? @sturmf I have a modification for this, are you ok with me pushing to the branch? The remaining work seems to be:
|
I went ahead and pushed a couple changes to the merge branch.. I hope everyone is cool with that. |
Well, I tried to push some tests. and I think I broke the whole thing. My apologies. |
@okken thanks for picking up that change! I hope I can get a bit to it during the Christmas holidays, if there is anything left to do. |
Awesome. I started a new branch starting with mainline and adding your changes and mine, mostly so that I could update it freely without too much damage. :) |
I think #11735 is about ready to go. There's no refactor yet, but tests are added. |
Attempted to merge my pr (#11735) into this one |
Cool. I think this merge worked. Merging tests from my PR into this one. @nicoddemus What is left to get this merged into main? |
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.
Looks good, thanks folks for working on this.
Besides my comments, I think what is missing is a CHANGELOG feature
entry describing this feature.
…` variants. Add feature changelog entry.
Ugghh. Looks like I broke pytest-sugar, I’ll take a look |
@nicoddemus Ok. A not-the-best-refactor-but-one-that-doesn't-break-pytest-sugar is in place. Let me know if there's anything else. @sturmf Thanks for getting the ball rolling on this. |
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.
Thanks folks, looks great!
@bluetech this is a fairly small change, do you think we should backport this to |
Fine by me to make an exception and backport it |
That’s very exciting. Is there an approximate timeframe for 8.0 ? |
This is an early implementation which closes #11233.
It duplicates the code of the passes and failures summary implementation right now but I didn't want to refactor it before I know if something like this could be accepted.