3 ms·
As a person who once struggled to parallelize a test suite when the entire thing was not written with parallelization in mind (until its runtime became onerous)
by lectrick 11y ago
As a person who once struggled to parallelize a test suite when the entire thing was not written with parallelization in mind (until its runtime became onerous)... I would highly, highly recommend using some parallelization framework from the get-go to uncover any concurrency issues immediately.
In Elixir this is literally as simple as adding "async: true" to your test modules.
It will also force you to write tests that can run concurrently... which has a few nice side effects for your code design generally.
- dave_ops 11y agoLWPs and OTP patterns are a "parallelization framework". You have to try pretty hard to design an OTP application that can't be trivially parallelized, and that includes parallelization across machines, not just cores.