Y
Hacker News
new
|
ask
|
show
|
jobs
by
coffeebeqn
806 days ago
So unless I pepper every test and subtest with t.Parallel() it will always run sequentially ? I gotta try that. Also I wish I could just declare that once
3 comments
rickette
806 days ago
Tests inside one _test.go file are run sequentially by default, but Go does run tests in parallel across packages.
link
hdra
806 days ago
what about multiple _test.go files belonging to the same package? and how does this work with "sub-packages"?
link
4death4
806 days ago
If you use suites you can run t.Parallel() once for the entire suite.
link
kbolino
805 days ago
You should wait until you actually need it. Parallel tests can produce interleaved output.
link