# Test Your Database Without Mocks

DevFeed: [Test Your Database Without Mocks](<https://devfeed.tech/articles/test-your-database-without-mocks-5814.md>)

Original publisher: [Read original article](<https://neon.com/blog/test-your-database-without-mocks>)

Author: Andrew Tate

Published: 2025-01-15T10:38:35Z

Content type: article

Language: en

Sources: [Blog -- Neon Docs](<https://devfeed.tech/sources/blog-neon-docs.md>)

Topics: [Mocking](<https://devfeed.tech/topics/mocking.md>)

Tags: [database](<https://devfeed.tech/tags/database.md>), [mocking](<https://devfeed.tech/tags/mocking.md>), [postgres](<https://devfeed.tech/tags/postgres.md>), [product](<https://devfeed.tech/tags/product.md>), [sql](<https://devfeed.tech/tags/sql.md>), [testing](<https://devfeed.tech/tags/testing.md>), [transactions](<https://devfeed.tech/tags/transactions.md>)

## AI overview

The article argues that database mocks are brittle, costly to maintain, and unable to faithfully verify important database behavior.

## Source excerpt

Mocks for databases are extremely brittle and complicated. - javcasas Mocks in general are rarely worth it, the DB ones: 10x so. - pdimitar Was dealing with mocking voodoo garbage this morning as a result of fixing a bug. What a horrible mess just to claim a few lines of "test co...