-
-
Notifications
You must be signed in to change notification settings - Fork 131
[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.14% -0.03%
==========================================
Files 113 113
Lines 26312 26359 +47
==========================================
+ Hits 21095 21126 +31
- Misses 5217 5233 +16 ☔ 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?
Fixes #2513