-
Book Overview & Buying
-
Table Of Contents
Hands-On Software Engineering with Python - Second Edition
By :
Data persistence is a mission-critical piece of any application or service that uses it. As such, it is just as critical to make intentional, defensible decisions about how and when data persistence functionality is going to be tested. At a unit testing level, since those are intended to run in isolation from other systems, data persistence functionality tests will typically be written with mocked or patched functionality, so that they can execute within that isolated context. Those tests, then, are intended to prove that the software components function as expected given known data inputs.
They do not prove that actual data inputs are, themselves, valid, or that any of the processes that use the software components with actual data are behaving as expected. Those fall into the realm of other types of tests:
As noted earlier, system tests focus on systems as a whole...