Testing Limitations

The cluster focuses on the philosophical limitations of software testing, repeatedly emphasizing that tests can only prove the presence of bugs, not their absence or the full correctness of code.

➡️ Stable 0.9x Other
4,486
Comments
20
Years Active
5
Top Authors
#1794
Topic ID

Activity Over Time

2007
5
2008
6
2009
61
2010
78
2011
82
2012
116
2013
101
2014
174
2015
206
2016
230
2017
303
2018
202
2019
291
2020
395
2021
403
2022
366
2023
382
2024
445
2025
585
2026
57

Keywords

MCP e.g AI AAA LLM ML UDHR ODE UI QuickCheck tests test testing code bugs prove absence correctness errors test suite

Sample Comments

layer8 Jun 17, 2025 View on HN

Tests can never verify the correctness of code, they only spot-check for incorrectness.

godelski Feb 7, 2025 View on HN

This is a misconception. Coding is very difficult to verify, it's just that everyone takes a good enough approach. They check the output and if it looks good they move on. But you can't just test and check your way through problems. If this was true we wouldn't have bugs lol. I hear you, your test set didn't have enough coverage. Great! Allow me to introduce you to black swans.

NieDzejkob Nov 8, 2019 View on HN

Tests can only prove the presence of bugs, not their absence.

masklinn Jan 15, 2019 View on HN

Tests can only prove the presence of bugs, not their absence.

purerandomness Feb 3, 2022 View on HN

Tests cannot prove the absence of bugs, ever.

au8er Jun 27, 2021 View on HN

You cannot use unit tests for everything, since the number of unit tests required is basically infinity. Logically, unit tests can only prove an error exists and cannot show the program is correct. What they most likely did was mathematically showed that all possible edge cases (potentially inifinitely many) are all considered.

jakobegger Jul 24, 2018 View on HN

Relying on tests is naive. Your tests can't cover every case. The article even mentions this -- their tests passed, but it failed in production.

layer8 Mar 23, 2023 View on HN

Testing does not show correctness, it can only show incorrectness.

kasparsklavins May 9, 2017 View on HN

Tests are not meant for ensuring it works with all inputs. You cant simply just throw values at it hoping its all okay.To prove it works with all possible inputs, there are other tools at your disposal.

aflag Apr 30, 2021 View on HN

Tests are not bullet proof and subtle errors may go uncatched. If you can completely eliminate a source of errors, why not?