Changes for page Tips and Tricks

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

From version 1.6
edited by chrisby
on 2023/05/29 12:30
Change comment: There is no comment for this version
To version 1.7
edited by chrisby
on 2023/05/29 15:37
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -51,3 +51,5 @@
51 51  //some logic
52 52  assertTrue(y);
53 53  {{/code}}
54 +
55 +* If certain production code needs to be called several times with slightly different arguments, it may be useful to iterate over a list of these arguments, calling the production code and then asserting the result on each iteration. It is then often good practice to print out each element before each assertion. If an element causes a test to fail, the terminal output will immediately show which element caused the error.