GoLand Cucumber/Gherkin support for godog

Hey there,

I'm a huge fan of Cucumber in Ruby, and am now starting to learn Golang.  I was able to get the Gherkin plugin installed to GoLand and the features formatter works great!  I installed the Golang Cucumber module godog via: 

go get github.com/DATA-DOG/godog/cmd/godog

godog homepage: https://github.com/DATA-DOG/godog 

I was able to work all the way through FizzBuzz on the command line using godog, yea!

https://github.com/ssmythe/fizzbuzz_using_godog

In GoLand, the step_definitions highlighter obvious doesn't know what to do in the features file, since there's no mapping to the _test.go files.  A big difference in how godog supports step_definitions is how it requires the _test.go files in the root directory.  Kinda weird, since I really liked having them tucked under the features/step_definitions directory in Ruby.

I'm still working out how to get godog to work with 'go test' on the command line.  I'm getting some errors still, but I'm hoping I'll get it soon.

I'm dreaming of the day when godog auto-run test support can be integrated into GoLand much the same way Cucumber is in RubyMine.  :-)

Keep up the awesome work GoLand team!

---- UPDATED: Fri Apr 27 8:42 PM PST

Well, it looks like I got it to work with 'go test', but the test runner in GoLand doesn't seem to like the output to be able to parse the output like it does in RubyMine for Cucumber.

Any suggestions on output formatting so GoLand can parse it?

The automatic test runner works now too!  :-D  Whoo hoo!

10
3 comments
Official comment

Hi Steve, I do apologize for the very late response on this. Unfortunately, currently, we don't support any Cucumber-like output for Go testing frameworks. As such, I created the following ticket for tracking this request: https://youtrack.jetbrains.com/issue/GO-5655 Please vote/comment on why this is important for your use-case in order to help our team prioritize it accordingly. I'm sorry I do not have a better response at this time. Thank you for your understanding.

Has there been any update on supporting this in IntelliJ ?

0

Hi outsider, not yet. Please follow GO-5655 to get the updates.

0

Please sign in to leave a comment.