Replies: 8 comments 4 replies
-
|
I couldn't get the godog CLI to work for my needs but when I plugged it into a |
Beta Was this translation helpful? Give feedback.
-
|
One thing I would like to be able to do is access the |
Beta Was this translation helpful? Give feedback.
-
|
Godog CLI does not intervene with the standard |
Beta Was this translation helpful? Give feedback.
-
|
Hey @vearutop 👋🏻 I believe it would be useful to take into consideration the upcoming release of Go version 1.20 and its potential benefits when used in conjunction with If anyone wants to try it out already you can by executing the following: go install golang.org/dl/go1.20rc3@latest
go1.20rc3 download
go1.20rc build -cover -v -o /path/to/your/desired/binary /path/to/your/main.go
mkdir coverage && GOCOVERDIR=coverage godog run your.feature
go1.20rc3 tool covdata textfmt -i=coverage -o=coverage.out
go tool cover -func coverage.outThe benefit of having a CLI tool, is that it improves the developer experience, specially for folks that are just getting started with godog. They don't have to read through snippets on how to set it up with I do however empathize with the maintainers point of view, that of reducing inner complexity and maintainability, as that will also allow you to ship new features faster perhaps. However your users don't care about that, they just want the best developer experience they can get. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for feedback, it seems with active deprecation notice there are now more people interested in keeping CLI alive. I think we can maybe reach a compromise on minimal maintenance burden and useful interface. Perhaps, we can try to build an experimental prototype of such a tool that would declare and propagate all |
Beta Was this translation helpful? Give feedback.
-
|
Is there an go test equivalent way to generate the cucumber test output? With the godog CLI we did it using
|
Beta Was this translation helpful? Give feedback.
-
|
@vearutop If I do no use the |
Beta Was this translation helpful? Give feedback.
-
|
I will suggest to provide a good and clear document on how to generate go code from the gherkin files. I will not recommend that people should hand-craft the go code from the gherkin files. This will always lead to errors and frustrations. Therefore the cli should only be for generating the the go test files and then we can run them using go test. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Historically
godogstarted as a command-line tool that you can run in your project and it would parse your code and build test executor. This seems convenient at first, but comes with limitations.Whenever you need something more than running tests (build tags, debugger, test coverage, etc...) you may find lack of control or difficult configuration. This comes from an unfortunate fact that
godogCLI takes ownership of some responsibilities that are usually carried out bygotools, those features are rich and it is not feasible to keep up parity.It is possible (and recommended) to run
godogfeature tests as subtests of*testing.T, this mode of operation aims to deliver same functionality asgodog runwith standardgo test(and therefore all advanced Go features available too with IDE assistance).In a recent discussion there was an idea to deprecate and phase out
godogCLI to reduce complexity and maintenance effort.I would like to learn from community if
godogin CLI mode is still useful these days. Please vote and share your use cases forgodog run/buildthat do not translate well intogo testoperation.Thank you for using
godog! ❤️Relevant issues:
#154 #373 #325 #159
100 votes ·
Beta Was this translation helpful? Give feedback.
All reactions