DonutReport / donut

Sweet reports for the icing over your automated tests
http://donutreport.github.io/donut
MIT License
37 stars 21 forks source link

Scenario output not being rendered to HTML template #55

Closed kevbradwick closed 5 years ago

kevbradwick commented 5 years ago

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).

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).

davebassan commented 5 years ago

Hi Kevin, we'll look into this and get a new release out a.s.a.p

davebassan commented 5 years ago

I have just released 1.2.2 that fixes this issue.