Closed marcosnils closed 10 years ago
Sounds like a good idea.
I'll add it and update the pr as needed
sent from mobile El nov 14, 2013 3:49 p.m., "Jonathan Leibiusky" notifications@github.com escribió:
I think we should add a flag to the go test command. Maybe something like:
go test -goblin.timeout 100ms
It makes more sense than defining it on every test file. What do you think?
— Reply to this email directly or view it on GitHubhttps://github.com/franela/goblin/pull/30#issuecomment-28511088 .
Finally it's done.
You can provide a timeout either through the command line like go test -goblin.timeout=5s
or you can initialize goblin programatically like Goblin(t, "-goblin.timeout=5s")
Amazing job! :)
I think we should add a flag to the
go test
command. Maybe something like:It makes more sense than defining it on every test file. What do you think?