Hacker News new | ask | show | jobs
by postalrat 1774 days ago
Would that be more desirable than building your tests from your application?

Seems to me that once you can go either way then you just proved the other redundant.

1 comments

The central thesis of this diatribe is that in order to have a 'complete' unit^ test, you need something at least as complicated as the original code:

https://rbcs-us.com/documents/Why-Most-Unit-Testing-is-Waste...

^ where the 'unit' is basically a function. i.e., to test a function fully, write a test as complicated as the function