The random run order principle
Random run order is more of a principle than a pattern. It applies to the test execution. This execution is usually performed on a Continuous Integration (CI) environment. The random run order principle states that the order of the test suite execution should be randomized every time the suite is executed. The idea is to flush out instabilities in the test suite by introducing an element of chaos. Any test that has a hidden dependency on another test will eventually fail when the test run order is random.
Note
CI tools are simple applications that execute a given build when certain conditions such as code change are met. There are several commercial tools available, such as TeamCity, Bamboo, and Travis-CI. One of the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access