Testing
This chapter explains how object-oriented software developed with the techniques shown in previous chapters can be tested. Specifically, three levels of testing are presented: unit tests for methods and classes, system operations tests, and use case tests. The chapter focuses on the functional approach to tests based on the operation contracts. For each parameter of a system or basic operation, the designer should define if it has acceptable and/or unacceptable values. A success test must be created for each success scenario and a failure test for each set of unacceptable values. With this approach test cases may be systematically designed. Equivalence partition and limit value analysis are also presented in order to determine ...
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