-
Notifications
You must be signed in to change notification settings - Fork 532
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
Error handling in custom benchmark #22245
Conversation
⯅ @fluid-example/bundle-size-tests: +245 Bytes
Baseline commit: b7e4e1e |
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.
A couple of things but it looks pretty good to me. We should make sure that with these changes, using benchmarkCustom()
behaves as expected in tree or tablebench, both in success and failure cases, and both with --perfMode and without. The usual pnpm-linking / override method to test that should still work.
Co-authored-by: Alex Villarreal <716334+alexvy86@users.noreply.github.com>
Awesome! Can you confirm that things look right if there's a mix of successful and failing tests in a given suite? The successful test should still get the custom data printed, and I'd like to see that the failed tests that won't report those columns still look correct and don't affect the rendering of the successful tests. |
🔗 No broken links found! ✅ Your attention to detail is admirable. linkcheck output
|
Description
#AB12925
Found a bug in
benchmarkCustom()
function not throwing an error.This PR makes following changes:
benchmarkCustom()
function.error
event from thebenchmarkCustom()
function which gets emitted to theMochaReporter
.--verbose
on thetest:customBenchmarks
script for better logging.Result
With the changes above, the following code throws an error on console: