September 2024
Beginner to intermediate
985 pages
35h 37m
English
The more source code you create, or the more complex the source code is and the more difficult and costly it is to verify that the source code does what it’s supposed to do. Automated tests, especially so-called unit tests, can help you execute source code automatically and formulate certain criteria that the tested source code should fulfill.
The principle of automated testing is outlined in Figure 21.1. The idea is essentially that you write specific programs (test programs or unit tests) that call the code to be tested and check the results of the code.
The code under test can be a single function, as shown in the figure, but also a combination of various ...
Read now
Unlock full access