You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I want to read tag value at runtime using opts.tags the code returns values as "imeout" from last parameter -timeout
when I remove -timout parameter(go test provides this parameter) tag values are returning correctly.
✅ What did you expect to see?
The values should be returned as @abc && ~@pqr && ~@uvw && ~@xyz"
I checked #495 (comment).
But mine is not related to that. My scripts are getting executed but not filtered based on tags I am passing.
Got go tests the filters are identified on -t or -tag, in my command line the arguments I am passing for -timeout. So go test consider imeout as tag value.
This is how init function is written
func init() {
opts := godog.Options{
Format: formatToCompare,
Output: bytes.NewBuffer(nil),
Paths: []string{},
}
godog.BindCommandLineFlags("tests.", &opts)
flag.Parse()
testReporter = createReport(&opts)
}
👓 What did you see?
When I want to read tag value at runtime using opts.tags the code returns values as "imeout" from last parameter -timeout
when I remove -timout parameter(go test provides this parameter) tag values are returning correctly.
✅ What did you expect to see?
The values should be returned as @abc && ~@pqr && ~@uvw && ~@xyz"
📦 Which tool/library version are you using?
godog v0.12.5
go version 1.17.3
🔬 How could we reproduce it?
Steps to reproduce the behavior:
📚 Any additional context?
The text was updated successfully, but these errors were encountered: