Changes for page Tips and Tricks

Last modified by chrisby on 2024/04/01 13:11

From version 1.10
edited by chrisby
on 2023/05/29 16:43
Change comment: There is no comment for this version
To version 1.11
edited by chrisby
on 2023/05/29 16:45
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -9,7 +9,6 @@
9 9  ** Alternative common names for the three steps: **arrange, act, assert**
10 10  * Use additional **simple high-level checks**. Use additional simple high-level checks. For example, when working with a collection, checking the number of elements is a good indicator of unexpected or missing elements.
11 11  * **More is better.** When in doubt, it is better to write one test too many than one test too few. Possible duplication is a lesser evil than not testing at all.
12 -* Also **test non-functional aspects** such as security, single request computation performance, and perform load/stress testing to validate software throughput.
13 13  * **Keep test resources close to the tests** to make their use easy to understand. Test resources should be placed in the same location as the test if the resource is only needed by that test.
14 14  * **Avoid threads**, as they are usually buggy and very difficult to test and debug properly. If threads are necessary, keep the amount of asynchronous code to a minimum. Also, separate synchronous and asynchronous logic to test them separately. Prefer thread termination conditions over fixed wait times, as this usually increases test performance dramatically.
15 15  * **Avoid files**