Optimizing Go tests can significantly speed up their execution. Visualizing test output is crucial for understanding inefficiencies, which can be addressed by using tools like 'vgt'. The post highlights the nuances of utilizing parallelism in Go tests using `t.Parallel()` and the `-parallel` flag, showcasing how default

12m read timeFrom threedots.tech
Post cover image
Table of contents
It’s hard to fix a problem that you can’t seeParallelizing Go testsTests in multiple packagesParallelism quirks: does grouping tests with t.Run() affect performance?Summary

Sort: