3 ms·
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
by coffeebeqn 3y 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
- 4death4 3y agoIf you use suites you can run t.Parallel() once for the entire suite.
- rickette 3y agoTests inside one _test.go file are run sequentially by default, but Go does run tests in parallel across packages.
- hdra 3y agowhat about multiple _test.go files belonging to the same package? and how does this work with "sub-packages"?
- kbolino 3y agoYou should wait until you actually need it. Parallel tests can produce interleaved output.