File tree Expand file tree Collapse file tree 4 files changed +9
-7
lines changed
main/java/io/cucumber/core/plugin
test/java/io/cucumber/core/plugin Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
1010and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
1111
1212## [ Unreleased]
13+ ### Changed
14+ - [ Core] Add status icons to pretty formatter ([ pretty-formatter/#5 ] ( https://github.com/cucumber/pretty-formatter/pull/5 ) )
1315
1416## [ 7.24.0] - 2025-07-07
1517### Added
Original file line number Diff line number Diff line change 1919 <html-formatter .version>21.13.0</html-formatter .version>
2020 <junit-xml-formatter .version>0.8.0</junit-xml-formatter .version>
2121 <messages .version>28.0.0</messages .version>
22- <pretty-formatter .version>0.2 .0</pretty-formatter .version>
23- <query .version>13.4 .0</query .version>
22+ <pretty-formatter .version>0.3 .0</pretty-formatter .version>
23+ <query .version>13.5 .0</query .version>
2424 <tag-expressions .version>6.1.2</tag-expressions .version>
2525 <testng-xml-formatter .version>0.4.0</testng-xml-formatter .version>
2626 </properties >
Original file line number Diff line number Diff line change 1313import static io .cucumber .prettyformatter .MessagesToPrettyWriter .PrettyFeature .INCLUDE_FEATURE_LINE ;
1414import static io .cucumber .prettyformatter .MessagesToPrettyWriter .PrettyFeature .INCLUDE_RULE_LINE ;
1515import static io .cucumber .prettyformatter .Theme .cucumber ;
16- import static io .cucumber .prettyformatter .Theme .none ;
16+ import static io .cucumber .prettyformatter .Theme .plain ;
1717
1818/**
1919 * Prints a pretty report of the scenario execution as it happens.
@@ -62,7 +62,7 @@ private void write(Envelope event) {
6262 @ Override
6363 public void setMonochrome (boolean monochrome ) {
6464 if (monochrome ) {
65- writer = createBuilder ().theme (none ()).build (out );
65+ writer = createBuilder ().theme (plain ()).build (out );
6666 }
6767 }
6868
Original file line number Diff line number Diff line change @@ -44,8 +44,8 @@ void writes_pretty_report() {
4444 assertThat (out , bytes (equalCompressingLineSeparators ("" +
4545 "\n " +
4646 "Scenario: scenario name # path/test.feature:2\n " +
47- " Given first step # io.cucumber.core.plugin.PrettyFormatterStepDefinition.one()\n " +
48- " When second step # io.cucumber.core.plugin.PrettyFormatterStepDefinition.two()\n " +
49- " Then third step # io.cucumber.core.plugin.PrettyFormatterStepDefinition.three()\n " )));
47+ " ✔ Given first step # io.cucumber.core.plugin.PrettyFormatterStepDefinition.one()\n " +
48+ " ✔ When second step # io.cucumber.core.plugin.PrettyFormatterStepDefinition.two()\n " +
49+ " ✔ Then third step # io.cucumber.core.plugin.PrettyFormatterStepDefinition.three()" )));
5050 }
5151}
You can’t perform that action at this time.
0 commit comments