Hacker News new | ask | show | jobs
by raw_anon_1111 78 days ago
Sort of a devils advocate question. If you write and review your tests and the functional and non functional requirements and the human tests for usability pass, why does the code matter?

Non functional requirements: performance, security, reliability, logging etc?

1 comments

Because the code is the actual thing, tests can only show that the code fails in certain cases, they don’t actually prove the code is correct.
If you are writing the correct tests that mirror the requirements, why wouldn’t passing tests mean the code is correct?
Because it doesn’t? Thats why the field of formal methods exists.
Then that sounds like you aren’t writing good tests…