Re:I Write Tests in Go
by coffeebeqn on Wednesday April 10, 2024 @09:38PM
(#39997582)
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
[ Parent
| on HN ]
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.