Conversation
Added the `t.Parallel()` function call in each test function to enable parallel test execution. This should reduce the overall time it takes to run all these tests by enabling them to run concurrently.
|
Potentially worth running these in parallel manually like func TestTest(t *testing.T) {
for i := 0; i < 10; i++ {
t.Run(fmt.Sprintf("iteration %d", i), TestTheTestIWantToRepro)
}
}to double check that it doesn't cause issues. |
Is there any difference between this method and |
Yes I believe there is. Subtests and Sub-benchmarks ¶ gives the examples:
showing how to cause tests run in parallel with and only with each other. So the example code I gave would have the OTOH as far as I've been able to tell, won't run anything in parallel, it will just run If you're running the entire test suite then it's a different story, as the test in question will be run parallel to other |

Added the
t.Parallel()function call in each test function to enable parallel test execution. This should reduce the overall time it takes to run all these tests by enabling them to run concurrently.