godog
godog copied to clipboard
Support publishing to Reports Service
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 would you be willing to help implement this?
@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
can I have a question @aslakhellesoy. Does Reports API support only message formatter? If yes, I guess, we need to support this as well.
I think with custom formatters, we can add diferente Cucumber Report systems.
Any update on this?