kevinrood / teamcity_formatter

TeamCity cucumber output formatter
Apache License 2.0
5 stars 8 forks source link

Number of failed / passed scenario don't handle 0 #4

Open eskignax opened 8 years ago

eskignax commented 8 years ago

Hello,

First, this issue already exist in the teamcity_formatter for older version of cucumber.

The problem is here: Teamcity offer a tool statistic with graph. If you want to create a graph with the number of failed cases, the graph will only display the builds with error. Because if there is no error, the value 'Number of Failed Tests' is not send to teamcity. ( Same with Passed Tests, Ignored Tests… ) You can see the data reported by a run in the tab Parameters -> Reported statistic values.

Run with all the type of result: screen shot 2016-03-29 at 6 00 49 pm

Run without error, the data Number of Failed cases is not given: screen shot 2016-03-29 at 6 01 53 pm

Is that possible to update that gem to send '0' for the Number of (Failed/Passed/Ignored) Tests when there is no (Failed/Passed/Ignored) Tests ?

Thank you.

kevinrood commented 8 years ago

@eskignax thank you for reporting this issue.

Build statistics can be logged. It looks like these are the statistics which need to be generated: TotalTestCount, PassedTestCount, FailedTestCount, IgnoredTestCount (see reference).

kevinrood commented 8 years ago

@eskignax I'm not sure when I would be able to get to this, but I made the note above as a reference for myself or anyone else who looks at adding support for this.