this post was submitted on 16 Nov 2026
280 points (97.9% liked)
Technology
90022 readers
3689 users here now
This is a most excellent place for technology news and articles.
Our Rules
- Follow the lemmy.world rules.
- Only tech related news or articles.
- Be excellent to each other!
- Mod approved content bots can post up to 10 articles per day.
- Threads asking for personal tech support may be deleted.
- Politics threads may be removed.
- No memes allowed as posts, OK to post as comments.
- Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
- Check for duplicates before posting, duplicates may be removed
- Accounts 7 days and younger will have their posts automatically removed.
Approved Bots
founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I think metrics like code coverage are a big part of the problem where devs are encouraged to stop short of fully testing something or write low-quality tests that prove nothing to satisfy the metric.
The classic simple example is a divide function that takes a dividend and divisor and returns a quotient. One test that passes 6 and 3 and asserts 2 yields 100% code coverage, but what what about divide by zero errors? Does it work with negative numbers? Etc., etc. You’re definitely not done with tests, despite the metric saying you are, and a slop generator (human or AI) could certainly write a fundamentally broken implementation that passes the tests.
Now combine that with a tendency to focus on unit tests that test the system in a manner that hardly reflects how it works in production, and you have a system that passes all the tests, yet doesn’t actually work.
This is generally solvable via mutation testing. Sadly, almost no developer knows what mutation testing even is.
Or NaN values.
There was once a bug in, I think, FORTRAN code, which converted a decimal string to double. It had a bug that became relevant when the input was near the precision limit, and led to an infinite loop. That bug was found in quite a number of runtime implementations like PHP.