Join +2,660 software developers getting weekly tips covering security, quality and system design.
When we write software, it's extremely important to make it as easy to read as possible (by others or just us in the future). The same principle applies to writing (unit) tests. โ What can we do to make โ Follow the simple AAA pattern:
โ The useful convention to apply this in the code is to use comments given / when / then as in the example below. This approach will help you quickly understand what the test is all about. Of course, there are many other good practices for writing tests, but... this is just a quick knowledge pill for you! ๐ โ Rate this email: โGREAT ๐ | OKEY ๐ | BAD ๐ โ Best wishes |
Join +2,660 software developers getting weekly tips covering security, quality and system design.