Closed johanlunds closed 8 years ago
hm, interesting, will need to check. which os and go version?
tested with a tip version and 1.6.2 on linux, works as expected. maybe you could try to debug few lines of code godog does not use syscalls to determine exit status, but instead stderr output from the command, as it always prints the exit status. maybe somehow the output was combined to stdout in your case.
Stdout/Stderr being combined is a possibility.
Go version + OS: 1.6.? and Ubuntu Linux in a Vagrant/Virtualbox VM.
We switched to Gucumber instead because of the troubles with Godog unfortunately. So I won't do anything further on this. Sorry! If you want to, you can close the issue.
it would be great, if you could test the update. If another tool solves your problems better, then sure. Probably it is not convenient to use with GB too, that also depends on which vendoring tool go community decides to go with in the future. Gucumber is probably more mature, godog is still young and there will be some issues and maybe design changes until it reaches v1. I'm sure I will maintain it in the future.
Awesome to hear! Thanks for open sourcing!
See example below.
exit status 1
godog
exits with status code 0godog
should exit with status code 1