-
-
Notifications
You must be signed in to change notification settings - Fork 135
[nextest-runner] add verbose flag to display test command lines #2800
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
base: main
Are you sure you want to change the base?
[nextest-runner] add verbose flag to display test command lines #2800
Conversation
4cfe34a to
b00750c
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2800 +/- ##
==========================================
+ Coverage 80.17% 80.47% +0.30%
==========================================
Files 113 114 +1
Lines 26312 26674 +362
==========================================
+ Hits 21095 21466 +371
+ Misses 5217 5208 -9 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| fn default_builder() -> DisplayReporterBuilder { | ||
| DisplayReporterBuilder { | ||
| default_filter: CompiledDefaultFilter::for_default_config(), | ||
| status_levels: StatusLevels { | ||
| status_level: StatusLevel::Fail, | ||
| final_status_level: FinalStatusLevel::Fail, | ||
| }, | ||
| test_count: 5000, | ||
| success_output: Some(TestOutputDisplay::Immediate), | ||
| failure_output: Some(TestOutputDisplay::Immediate), | ||
| should_colorize: false, | ||
| no_capture: true, | ||
| verbose: false, | ||
| show_progress: ShowProgress::Counter, | ||
| no_output_indent: false, | ||
| max_progress_running: MaxProgressRunning::default(), | ||
| } | ||
| } | ||
|
|
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.
Wouldn't this be better as an impl Default instead of a free standing fn?
| /// | ||
| /// Returns the output written to the reporter. | ||
| fn with_reporter<'a, F>(f: F, out: &'a mut String) | ||
| fn with_reporter<'a, F>(builder: DisplayReporterBuilder, f: F, out: &'a mut String) |
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.
If you're passing default_builder() at every call site isn't it just better to not have it as an argument and always construct a default builder inside the function?
sunshowers
left a comment
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 for working on this.
| use smol_str::SmolStr; | ||
| use std::{num::NonZero, sync::Arc}; | ||
|
|
||
| fn default_builder() -> DisplayReporterBuilder { |
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 this required?
b00750c to
4c56227
Compare
|
Implementation updated based on feedback |
|
With apologies, I need to tackle something urgently at work this week. Hoping to look at this by the end of the week. |
5444f30 to
dc0683d
Compare
Fixes #2513