Skip to content
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

Support publishing to Reports Service #399

Open
vinhlh opened this issue Jun 18, 2021 · 5 comments
Open

Support publishing to Reports Service #399

vinhlh opened this issue Jun 18, 2021 · 5 comments
Labels
⚡ enhancement Request for new functionality

Comments

@vinhlh
Copy link

vinhlh commented Jun 18, 2021

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
@aslakhellesoy aslakhellesoy added the ⚡ enhancement Request for new functionality label Jun 18, 2021
@aslakhellesoy
Copy link
Contributor

@vinhlh would you be willing to help implement this?

@vinhlh
Copy link
Author

vinhlh commented Jun 19, 2021

@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
Copy link
Author

vinhlh commented Jun 19, 2021

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

@inluxc
Copy link

inluxc commented Jul 12, 2021

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

@ale8k
Copy link

ale8k commented Mar 1, 2023

Any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚡ enhancement Request for new functionality
Projects
None yet
Development

No branches or pull requests

4 participants