Hacker News new | ask | show | jobs
by psvj 1774 days ago
it would be interesting if copilot could generate the code based on your unit tests
1 comments

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.

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