Closed radtriste closed 3 years ago
I followed as documented: https://github.com/cucumber/godog#running-godog-with-go-test
Hi @radtriste
Using BindCommandLineFlags(prefix, &opts) also requires you to use "github.com/spf13/pflag" to parse the flags. Could this be the issue?
my go.sum
github.com/spf13/pflag v0.0.0-20170130214245-9ff6c6923cff/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
github.com/spf13/pflag v1.0.1-0.20171106142849-4c012f6dcd95/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
github.com/spf13/pflag v1.0.2/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
so it is there
oh I see now ... it seems the code is still using the internal flag
let me update that and come back to you
looks a bit better. Thank you (and closing this)
great! :)
thx for reactivity and sorry for the time lost ...
no worries, happy to help! :)
Please answer these questions before submitting a bug report.
What version of godog are you using?
v0.11.0
What version of Go are you using?
go version go1.14.13 linux/amd64
What did you do?
in my
main_test.go
launching command
go test ./test --godog.tags=@test
What did you expect to see?
Test should run
What did you see instead?
Additional context
Not using
godog
app but running as go test framework It is working withv0.10.0
and linegodog.BindFlags("godog.", flag.CommandLine, &godogOpts)
which is now deprecated