godog icon indicating copy to clipboard operation
godog copied to clipboard

Support publishing to Reports Service

Open vinhlh opened this issue 3 years ago • 5 comments

Is your feature request related to a problem? Please describe. As it's being supported in other languages JS, Ruby, JVM https://cucumber.io/blog/open-source/cucumber-reports/ And it would be great to have it in godog as well.

In the meantime, something like this works for me

#!/bin/bash
godog -f cucumber | json-to-messages > messages.json

TARGET=$(http "https://messages.cucumber.io/api/reports" "Authorization: Bearer $CUCUMBER_PUBLISH_TOKEN" --headers | grep Location | sed "s/Location: //" | tr -d '\r')

http -v PUT $TARGET @./messages.json

vinhlh avatar Jun 18 '21 14:06 vinhlh

@vinhlh would you be willing to help implement this?

aslakhellesoy avatar Jun 18 '21 16:06 aslakhellesoy

@vinhlh would you be willing to help implement this?

sure, let me give it a try, maybe try referencing to the implementation in cucumber-js

vinhlh avatar Jun 19 '21 14:06 vinhlh

can I have a question @aslakhellesoy. Does Reports API support only message formatter? If yes, I guess, we need to support this as well.

vinhlh avatar Jun 19 '21 14:06 vinhlh

I think with custom formatters, we can add diferente Cucumber Report systems.

inluxc avatar Jul 12 '21 10:07 inluxc

Any update on this?

ale8k avatar Mar 01 '23 10:03 ale8k