-
Notifications
You must be signed in to change notification settings - Fork 30.5k
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
test_runner: print formatted errors on summary #56911
base: main
Are you sure you want to change the base?
Conversation
Review requested:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #56911 +/- ##
==========================================
+ Coverage 89.16% 89.21% +0.04%
==========================================
Files 665 665
Lines 192602 192511 -91
Branches 37050 37045 -5
==========================================
+ Hits 171732 171747 +15
+ Misses 13678 13606 -72
+ Partials 7192 7158 -34
|
72e82e9
to
9e21914
Compare
ArrayPrototypePush(results, formattedErr); | ||
} | ||
callback(null, ArrayPrototypeJoin(results, '\n')); | ||
callback(null, this.#formatFailedTestResults()); |
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.
We shouldn't still need this, 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.
in theory no but since it's part of _flush, I think it shouldn't be a big deal to have it there as well.
Wdyt?
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.
In non-watch mode, wouldn't it cause the errors to be printed here and for the summary event?
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.
nope as on each "print" we're cleaning this.#failedTests = []; // Clean up the failed tests
.
But still we can remove it
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.
Ah ok. I guess the question is, "is this expected to do anything?" My thoughts are no, so we should probably remove it.
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.
Following this discussion: #56662 (comment)
This PR should address #56902