Skip to content
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

Fix missing feature and scenario headers #300

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ All user visible changes to `cucumber` crate will be documented in this file. Th
### Fixed

- Incorrect terminal width detection when its height is low. ([#298])
- Incorrect terminal lines clearing in interactive mode. ([#300], [#299])

[#298]: /../../pull/298
[#299]: /../../issues/299
[#300]: /../../pull/300



Expand Down
4 changes: 0 additions & 4 deletions src/writer/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,6 @@ impl<Out: io::Write> Basic<Out> {
feature: &gherkin::Feature,
) -> io::Result<()> {
let out = format!("{}: {}", feature.keyword, feature.name);
self.lines_to_clear += self.styles.lines_count(&out);
self.output.write_line(&self.styles.ok(out))
}

Expand Down Expand Up @@ -327,7 +326,6 @@ impl<Out: io::Write> Basic<Out> {
rule.name,
indent = " ".repeat(self.indent)
);
self.lines_to_clear += self.styles.lines_count(&out);
self.indent += 2;
self.output.write_line(&self.styles.ok(out))
}
Expand Down Expand Up @@ -455,7 +453,6 @@ impl<Out: io::Write> Basic<Out> {
retries.current,
retries.left + retries.current,
);
self.lines_to_clear += self.styles.lines_count(&out);
self.output.write_line(&self.styles.retry(out))
} else {
let out = format!(
Expand All @@ -464,7 +461,6 @@ impl<Out: io::Write> Basic<Out> {
scenario.keyword,
scenario.name,
);
self.lines_to_clear += self.styles.lines_count(&out);
self.output.write_line(&self.styles.ok(out))
}
}
Expand Down