-
Notifications
You must be signed in to change notification settings - Fork 71
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
Add verbose
CLI flag to the writer::Basic
(#192)
#193
Conversation
skip_world
flag to the writer::Basic
verbose
CLI flag to the writer::Basic
verbose
CLI flag to the writer::Basic
verbose
CLI flag to the writer::Basic
(#192)
FCM
|
verbose
CLI flag to the writer::Basic
(#192)verbose
CLI flag to the writer::Basic
(#192)
@tyranron It looks like GitHub Actions are struggling today. Some of the tests hang with log output, despite restarting 3 times
|
/// '-v' outputs World on failed Steps. | ||
/// '-vv' additionally outputs Docstring. | ||
#[clap(short, parse(from_occurrences))] | ||
pub verbose: u8, |
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.
This way we loose an ability to specify -v 0
. I guess we shoud shift them for -v
being the default None
and -vv
outputing World on failed Steps.
src/writer/basic.rs
Outdated
@@ -81,6 +83,64 @@ impl FromStr for Coloring { | |||
} | |||
} | |||
|
|||
/// Verbosity level of the output. | |||
#[derive(Clone, Copy, Debug)] | |||
pub enum Verbosity { |
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.
This may be declared in writer/mod.rs
and be a common one.
src/writer/junit.rs
Outdated
@@ -350,7 +350,7 @@ impl<W: Debug, Out: io::Write> JUnit<W, Out> { | |||
let mut basic_wr = writer::Basic::raw( | |||
WritableString(String::new()), | |||
Coloring::Never, | |||
false, | |||
writer::basic::Verbosity::OutputWorld, |
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.
I guess now we should introduce similar option for writer::Junit
.
Resolves #192
Synopsis
For now there is no way to skip printing
World
on failedStep
s.Solution
Add
skip-world
CLI flag.Checklist
Draft:
prefixDraft:
prefix is removed