Default failure summary for expanded reporter#2588
Default failure summary for expanded reporter#2588natebosch merged 8 commits intodart-lang:masterfrom
Conversation
|
The issue core problem- not knowing which tests failed is solved... the line number is a nice-to-have, needs more work maybe extracting from |
|
@Telomelonia I am curious specifically with the current output what is causing the output to be hard to read - is it that there are large stack traces/failure explanations for each failure? In some sense I worry that if there are a lot of failures, this list at the bottom will now be hiding the actual reasons for failure, creating a different problem? Maybe we should just print the first X failures at the bottom or something in the summary, followed by |
PR HealthChangelog Entry ✔️
Changes to files need to be accounted for in their respective changelogs. This check can be disabled by tagging the PR with |
This is not expected in typical cases when using the compact reporter. I'd understand the utility more clearly if we were adding this to the expanded reporter. I'm not completely opposed to the idea of adding a summary, but we should first dig a bit more on the root cause. If there are common causes of excessively long output from the compact reporter I'd be more inclined to resolve those than to patch over the long output with even more output. Can you clarify what type of output from successful tests is causing the failures to scroll away? Or is the problem with failure output that is too tall? |
|
@natebosch
That Flutter issue is actually titled "Flutter test doesn't report the failing tests in the summary" — same ask. And it's come up here before too (#263, #554). I also agree with your point about the expanded reporter — this problem is worse there since every update is a new line. So I'd like to extend the summary to both compact and expanded rather than just compact. |
|
Per @jakemac53's feedback I'll also cap it to the first 5 failures with "... and N more" so the summary itself doesn't get unwieldy. |
52c5c9c to
3e49572
Compare
75434f5 to
780f288
Compare
780f288 to
f692111
Compare
|
@natebosch cc: @jakemac53 |
|
@natebosch |
|
A changelog entry would be nice here! |
|
@kevmoo |
It looks odd to have the 1 extra failure turn into 1 extra line that doesn't say anything about it. Instead collapse to 1 item fewer than the max, so collapsing only happens when it will impact at least 2 failure messages. Add tests for the collapsing behavior.
Summary
failure_summary.dartwith deterministic sorted output and(did not complete)annotationswriteFailureSummaryunconditionally in the expanded reporter on failure