There's a psychological phenomenon called the "illusion of explanatory depth."
Ask someone how a zipper works, and they'll say "I know exactly how it works." Ask them to explain it step by step, and they discover they have no idea.
We confuse familiarity with understanding. The feeling of knowing something isn't the same as actually knowing it.
I think about this every time a team tells me their testing is solid.
Welcome to 2026. First newsletter of the year, and I wanted to start by questioning something we rarely question: What exactly are our tests testing?
The Confidence Problem
"We tested it thoroughly!"
I've heard this sentence hundreds of times. Usually about an hour before discovering that something fundamental was missed.
Not because the team was careless. Not because the tests were poorly written.
But because the tests validated a model of the application, not the application itself.
Here's what I mean:
What Tests Actually Validate
When a test passes, it confirms one thing: given this input, the code produces that output.
That's it. Nothing more.
The test doesn't know if "this input" resembles anything in production. It doesn't know if real users will ever provide data that looks like your test case. It doesn't know if the volume, variety, and messiness of the real world has any relationship to what you typed into a mock.
A test passing tells you the code works. It doesn't tell you the code will survive.
The Six-Record Database
Last edition, I mentioned a combobox with 47,000 entries that crashed a production system. In dev, it had six records.
That's an extreme example. But the pattern is everywhere.
I've seen order systems tested with 50 orders. Production has 2 million.
User searches validated with 100 contacts. Production has 80,000 per account.
Reports and dashboards that run in milliseconds in dev. Production? 3-minute timeouts.
Every single test passed. Every single deployment failed.
Volume Is Just the Start
Volume is the obvious gap. But it's not the only one.
Relationships get weird. In production, customers have orders that reference products that were discontinued three years ago. Invoices link to addresses that no longer exist. Users belong to departments that were reorganized twice.
Your dev database has clean, consistent references. Production has ten years of accumulated decisions, migrations, and edge cases that no one planned for.
Data ages differently. Production data has been modified by every version of your application. Records created in 2019 might have fields that didn't exist until 2022, filled with defaults that made sense then but break assumptions now.
Your dev database was created last month. It knows nothing about your application's history.
Nulls appear where they shouldn't. I've lost count of how many production bugs trace back to a null in a field marked "required" because the requirement was added after the data already existed.
Your dev database respects your current schema. Production respects its past.
The Relationship Test
Here's a simple diagnostic I suggest using with teams.
Pick a core entity in your system. A customer, an order, a product, whatever matters most.
Now answer these questions for your dev environment:
What's the maximum number of related records any single entity has?
What's the oldest record in the database?
How many records have null values in fields you assume are populated?
How many records violate business rules that were added after they were created?
If you can't answer these confidently, you probably don't know what you're testing against... And if the answers don't match production, your tests are validating fiction.
Why This Keeps Happening
It's not laziness. It's structural.
Getting production-representative data into dev environments is genuinely hard:
Security concerns: production has real customer data
Volume challenges: full production dumps are massive
Access restrictions: not everyone should see everything
Refresh frequency: data gets stale, but refreshing is painful
So teams take shortcuts. They generate synthetic data. They copy subsets. They create "just enough" test records to prove features work.
And then they're surprised when production looks nothing like what they tested.
The False Sense of Coverage
Here's the uncomfortable part.
Test coverage metrics lie in this context.
You can have 90% code coverage and still miss every production edge case because coverage measures which code paths were executed, not which data scenarios were encountered.
If your tests hit every branch but only with clean, predictable data, you've proven your code can handle the ideal case. You've proven nothing about the real one.
I've seen teams with impressive coverage numbers get blindsided by production issues that no test anticipated. Not because they skipped testing, but because they tested against a reality that doesn't exist.
What Would Change
Imagine your dev database was a representative sample of production.
Same proportions. Same edge cases. Same historical messiness. Anonymized for security, but structurally identical.
What would change?
The combobox with 47,000 entries would fail in dev, where debugging is easy, not production, where it's a crisis.
The report that times out would time out during development, when you can fix the query.
The null that crashes the form would crash on your machine, not the customer's.
Problems would shift left. Not because you added more tests, but because your tests encountered reality earlier.
The Question Behind the Question
"What does your dev environment actually test?"
This isn't really a question about testing. It's a question about honesty.
Are we testing the application, or our assumptions about the application?
Are we validating that the code works, or that it survives?
Are we building confidence, or illusion?
A Diagnostic for Your Team
Before your next deployment, ask your QA lead or platform lead:
When was dev/test data last refreshed from production (or a production-representative source)?
What's the volume ratio between dev and production for your core entities?
How many production bugs in the last quarter traced back to data scenarios that didn't exist in dev?
If the answers make you uncomfortable, that discomfort is information.
It's telling you something about the gap between what you test and what you deploy to.
What I'm Not Saying
I'm not saying testing is worthless. It's not.
I'm not saying code coverage doesn't matter. It does.
I'm saying that what you test against matters as much as how you test. And most teams invest heavily in the how while ignoring the what entirely.
The result is confidence without foundation. Tests that pass but don't protect. Coverage that measures effort but not exposure.
Your Turn
I've shared what I've observed. But patterns are only useful if they resonate.
Does this match your experience? Have you found ways to close the gap between dev and production data that actually work at scale?
Or do you think I'm overstating the problem, that good synthetic data and careful test design can bridge this gap?
I'm genuinely curious. The best conversations come from people who see it differently :)
Bruno