Skip to content

Commit

Permalink
Fix missing feature and scenario headers in interactive terminal mode (
Browse files Browse the repository at this point in the history
  • Loading branch information
Daanoz committed Sep 14, 2023
1 parent 7cd7f4a commit 62579b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
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

0 comments on commit 62579b0

Please sign in to comment.