Throughout this chapter, we are going to use some concepts that may not be familiar to readers without previous experience in the field of software testing. For this reason, we are going to take a quick look at some of the most popular concepts in software testing before we get started.
Testing terminology
Assertions
An assertion is a condition that must be tested to confirm that a certain piece of code behaves as expected, or, in other words, to confirm conformance to a requirement.
Let's imagine that we are working as part of the Google Chrome development team, and we must implement the JavaScript Math API. If we are working on the pow method, the requirement could be something like, the Math.pow (base, exponent) function...