Component testing
Component testing verifies that the units within a component work together properly to produce the desired behavior while still isolating the component from external resources via test doubles. The need for component testing depends on the complexity of the component. In many cases, a bounded, isolated component can be sufficiently tested with just unit testing and integration testing, as covered in the next section. However, some components may perform complex calculations and logic with many permutations. These components will often have a strict set of acceptance tests that must be satisfied, in which case the tests may be implemented with a behavior-driven development (BDD) tool, such as Cucumber.
The line between component ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access