Changes for page Test Speedup

Last modified by chrisby on 2025/03/08 11:39

From version 1.1
edited by chrisby
on 2023/05/29 18:32
Change comment: There is no comment for this version
To version 1.3
edited by chrisby
on 2023/05/29 20:40
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,9 +1,8 @@
1 -Fast-executing tests require less time and are executed more frequently, contributing to improved code quality. Therefore a high test execution speed is important.
1 +Fast-executing tests require less time and are executed more frequently, contributing to improved code quality. Therefore a high test execution speed is beneficial.
2 2  
3 3  
4 4  === Measures ===
5 5  
6 -* **General code optimizations** such as faster algorithms, data types, etc.
7 7  * **Test type segregation**: Unit tests typically run much faster than other types of tests. For large test suites, consider running unit tests regularly on the developer's local machine, while scheduling more resource-intensive tests to run at a fixed rate in a continuous integration environment, for example.
8 8  * **Partial testing**: You don't have to run all tests every time. Often, it is sufficient to run only the tests related to recently changed code.
9 9  * **Mock slow dependencies** to minimize code execution time, especially operations such as I/O, transaction management, and networking.