Changes for page Test Speedup
Last modified by chrisby on 2025/03/08 11:39
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -11,14 +11,14 @@ 11 11 * **Improve I/O speed by using RAM disks**, such as Linux's tmpfs tool. Configure your tests to direct all file interactions to the RAM disk. 12 12 * **Parallelize test execution.** Multiple threads can improve execution speed even on single-core processors by keeping the CPU busy while other threads wait for disk 13 13 14 -### Us ingDevOps Infrastructure14 +### Use DevOps Infrastructure 15 15 16 -A good developer should learn modern DevOps concepts, especially CI pipelines /jobs(inGitLabterms). Beginners may want to start with a third-party DevOps infrastructure provider, such as GitLab or GitHub.16 +A good developer should learn modern DevOps concepts, especially CI/CD pipelines and jobs. Beginners may want to start with a third-party DevOps infrastructure provider, such as GitLab or GitHub. 17 17 18 -* **Test type segregation**: You should consider regularly runningfast tests, such as unit tests, on the developer's local machine, while scheduling more resource-intensive tests in a CI environment.19 -* **Asynchronous Testing**: Running the entire test suite locally results in long wait times that block development. In uch cases,you simply push the code to the source repository and haveaCI environmentthatrunsthe test suite while you continue developmentimmediately. If a CI job fails, youare notified so you canstopdevelopmentandfix the problemfirst.20 - * **CI Concurrency** can drastically enhance test execution speed.21 - * ** Enable concurrent CI pipelines**:The developershould be ableto push code and spawn new CI pipelinesthat runimmediately on different machineswhile oldpipelinesmaystillberunning.22 - * ** Enable concurrent CI jobs**: Split the test suite into multiple independently executable CI jobs to allow concurrentlyexecution.23 - * Both of these measures require multiple machines to run the jobs, which isquite demanding on the DevOps infrastructure,but often worth the cost.24 - * **Scheduled Testing**: A less resource-intensive alternative to the above approachis to run large test suites at a fixedrate, typically once a day at midnight,which is less demandingon theDevOps infrastructure.18 +* **Test type segregation**: Regularly run fast tests, such as unit tests, on the developer's local machine, while scheduling more resource-intensive tests in a CI environment. 19 +* **Asynchronous Testing**: Running the entire test suite locally results in long wait times that block development. Instead, push the code to the source repository and let the CI environment run the test suite while you continue development. If a CI job fails, you will be notified so that you can prioritize fixing the problem. 20 + * **CI Concurrency**: Drastically enhance test execution speed by enabling concurrent CI pipelines and jobs. 21 + * **Concurrent CI pipelines**: Allow the developer to push code and spawn new CI pipelines immediately on different machines, even if previous pipelines are still running. 22 + * **Concurrent CI jobs**: Split the test suite into multiple independently executable CI jobs to allow concurrent execution. 23 + * Both of these measures require multiple machines to run the jobs, which can be demanding on the DevOps infrastructure but is often worth the cost. 24 + * **Scheduled Testing**: A less resource-intensive alternative is to run large test suites at a fixed interval, typically once a day at midnight, and run only the fast or important tests locally.