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

Tests inside one _test.go file are run sequentially by default, but Go does run tests in parallel across packages.
what about multiple _test.go files belonging to the same package? and how does this work with "sub-packages"?
If you use suites you can run t.Parallel() once for the entire suite.
You should wait until you actually need it. Parallel tests can produce interleaved output.