gongo / turnip_formatter

A pretty formatter for Turnip
http://gongo.hatenablog.com/entry/2013/04/18/203426
MIT License
34 stars 24 forks source link

cucumber compatible json output #48

Open yragg opened 10 years ago

yragg commented 10 years ago

How does turnip_formatter compare to existing report builders: eg. this one for jenkins:

https://github.com/jan-molak/jenkins-cucumber-jvm-reports-plugin-java

And can this gem be used to produce cucumber compatible json output?

ie. of the form: https://www.relishapp.com/cucumber/cucumber/docs/json-output-formatter#one-feature,-one-passing-scenario,-one-failing-scenario

which could then be plugged in to the cucumber report builders?

Or on the other hand can this gem generate reports in jenkins based on the cucumber json created by some other job?

gongo commented 10 years ago

Hi @yragg .

I think turnip_formatter will be able to generate cucumer report json output in addition to html output. However, I do not need json output at the moment, so I'm not going to implement.

If you want to this feature, please send me a pull request. Or, wait patiently for me to implement.


By the way, I have kept HTML that generated by turnip_formatter on Jenkins using plugin (eg. HTML Publisher Plugin). So I do not feel so far the need to use cucumber report builder.

yragg commented 10 years ago

Hi @gongo, thanks for the reply and the gem.

I was also interested in another jenkins plugin:

https://wiki.jenkins-ci.org/display/JENKINS/Cucumber+Test+Result+Plugin

which apparently provides a trend/test history, although I have trouble seeing an example of this in the hosted screenshots. (and as it needs cucumber report json output I'm unable to check it out).

.. but your reports are awesome - so i'll probably just stick with them.

(or if someone else reads this and wants to put in the effor,t do you think you could link to a couple of files and perhaps write a sentence pointing them in the right direction of how they could implement it?)

gongo commented 10 years ago

(or if someone else reads this and wants to put in the effor,t do you think you could link to a couple of files and perhaps write a sentence pointing them in the right direction of how they could implement it?)

Umm.. I'm not going to write this sentence currently. (no motivation..) I can only say "Please read the source code" .