The latest version of Cinnamon (0.2.0) uses a newer version of Cucumber (4.2.6). The cucumber.json file that gets generated puts any output (when using Scenario.write within an after hook) into the json structure elements.[index].after.[index].output. Donut does not output this custom output as it is looking in the older location of elements.[index].steps.[index].output which was in the older version of Cucumber (with Cinnamon 0.1.2).
We rely on the after hooks to write custom output when a scenario fails and can no longer see this output with the latest Cinnamon/Cucumber. This issue probably extends to writing to scenarios in before hook too (but haven't checked).
The latest version of Cinnamon (0.2.0) uses a newer version of Cucumber (4.2.6). The
cucumber.json
file that gets generated puts any output (when usingScenario.write
within an after hook) into the json structureelements.[index].after.[index].output
. Donut does not output this custom output as it is looking in the older location ofelements.[index].steps.[index].output
which was in the older version of Cucumber (with Cinnamon 0.1.2).See https://github.com/DonutReport/donut/blob/master/src/main/scala/report/donut/gherkin/processors/HTMLProcessor.scala#L157
and
https://github.com/DonutReport/donut/blob/master/src/main/scala/report/donut/gherkin/processors/HTMLProcessor.scala#L107
We rely on the after hooks to write custom output when a scenario fails and can no longer see this output with the latest Cinnamon/Cucumber. This issue probably extends to writing to scenarios in before hook too (but haven't checked).