New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to make a report in a JSON format #667

Open
jgrossrieder opened this Issue Jul 14, 2016 · 10 comments

Comments

Projects
None yet
5 participants
@jgrossrieder

jgrossrieder commented Jul 14, 2016

Hi,

I was wondering if it would be possible to generate a report in a JSON format.

Cucumber allow this, through the -f or -p option.

This is the missing piece in using SpecFlow in a complexe project, publishing results on another tool(XRAY), which links JIRA feature to SpecFlow scenarios.

@samholder

This comment has been minimized.

Show comment
Hide comment
@samholder

samholder Jul 14, 2016

Contributor

Is there some specification for the report format? Or will any old format as long as its JSON do?

It's hard to imagine that this will ever get done if there is no information about what the format should be. If you want to get specflow to do this then feel free to submit a PR which allows the export to happen in the format you want, but realistically I can't imagine anyone taking this work on as we don't know what the format you want is, and there are a lot of other things to fix/implement.

Contributor

samholder commented Jul 14, 2016

Is there some specification for the report format? Or will any old format as long as its JSON do?

It's hard to imagine that this will ever get done if there is no information about what the format should be. If you want to get specflow to do this then feel free to submit a PR which allows the export to happen in the format you want, but realistically I can't imagine anyone taking this work on as we don't know what the format you want is, and there are a lot of other things to fix/implement.

@jgrossrieder

This comment has been minimized.

Show comment
Hide comment
@jgrossrieder

jgrossrieder Jul 14, 2016

Hi,
Thank you for your suggestion.
I was able to find this: https://www.relishapp.com/cucumber/cucumber/docs/formatters/json-output-formatter
Is it enough?

jgrossrieder commented Jul 14, 2016

Hi,
Thank you for your suggestion.
I was able to find this: https://www.relishapp.com/cucumber/cucumber/docs/formatters/json-output-formatter
Is it enough?

@dirkrombauts

This comment has been minimized.

Show comment
Hide comment
@dirkrombauts

dirkrombauts Jul 14, 2016

Contributor

If any kind of JSON will do for you, then you could try Pickles: Pickles will take your feature files and the test result file as input, and will output a variety of formats. The JSON format would be relevant for you.

Full disclosure: I am the maintainer of Pickles :-) I will be happy to help you get started with Pickles. If you have questions, please ask me!

Contributor

dirkrombauts commented Jul 14, 2016

If any kind of JSON will do for you, then you could try Pickles: Pickles will take your feature files and the test result file as input, and will output a variety of formats. The JSON format would be relevant for you.

Full disclosure: I am the maintainer of Pickles :-) I will be happy to help you get started with Pickles. If you have questions, please ask me!

@jgrossrieder

This comment has been minimized.

Show comment
Hide comment
@jgrossrieder

jgrossrieder Jul 14, 2016

@dirkrombauts Unfortunately, it's for an external tool(XRAY), which accept only the format of cucumber. But I may have to use Pickles for some other usages, this seems interesting

jgrossrieder commented Jul 14, 2016

@dirkrombauts Unfortunately, it's for an external tool(XRAY), which accept only the format of cucumber. But I may have to use Pickles for some other usages, this seems interesting

@samholder

This comment has been minimized.

Show comment
Hide comment
@samholder

samholder Jul 14, 2016

Contributor

Maybe a PR for pickles to output in the format of cucumber would be more a more appropriate solution (or at least a quicker one)

Contributor

samholder commented Jul 14, 2016

Maybe a PR for pickles to output in the format of cucumber would be more a more appropriate solution (or at least a quicker one)

@dirkrombauts

This comment has been minimized.

Show comment
Hide comment
@dirkrombauts

dirkrombauts Jul 14, 2016

Contributor

There's a feature request at Pickles for just that: picklesdoc/pickles#278

I will be happy to review a pull request for it!

Contributor

dirkrombauts commented Jul 14, 2016

There's a feature request at Pickles for just that: picklesdoc/pickles#278

I will be happy to review a pull request for it!

@samholder

This comment has been minimized.

Show comment
Hide comment
@samholder

samholder Jul 25, 2016

Contributor

@jgrossrieder can we close this as I believe you are working on a solution on the pickles said

Contributor

samholder commented Jul 25, 2016

@jgrossrieder can we close this as I believe you are working on a solution on the pickles said

@samholder samholder closed this Jul 25, 2016

@samholder samholder reopened this Jul 25, 2016

@jgrossrieder

This comment has been minimized.

Show comment
Hide comment
@jgrossrieder

jgrossrieder Jul 25, 2016

@samholder For me this it is still a big workaround required, it would make a lot of sense to have this directly inside specflow(if we say that SpecFlow is the .Net Cucumber)

jgrossrieder commented Jul 25, 2016

@samholder For me this it is still a big workaround required, it would make a lot of sense to have this directly inside specflow(if we say that SpecFlow is the .Net Cucumber)

@samholder

This comment has been minimized.

Show comment
Hide comment
@samholder

samholder Jul 25, 2016

Contributor

@jgrossrieder ok, added a feature request tag

Contributor

samholder commented Jul 25, 2016

@jgrossrieder ok, added a feature request tag

@mattwynne

This comment has been minimized.

Show comment
Hide comment
@mattwynne

mattwynne commented Oct 5, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment