26 / 65 · 15 SQL & Database Testing · Constraint Testing← prev⊞ allnext →☰ Read as one page
4.1Overview
Database constraints are the database's built-in test suite. They enforce data integrity rules at the lowest level — even if the application code has a bug, constraints prevent invalid data from being stored. Testing constraints verifies that the safety net is in place.