Re:I tested Copilot in an existing open-source codebase with...
by psvj on Sunday August 15, 2021 @07:35PM
(#28193562)
it would be interesting if copilot could generate the code based on your unit tests
[ Parent
| on HN ]
Re:I tested Copilot in an existing open-source codebase with...
by postalrat on Sunday August 15, 2021 @10:32PM
(#28194437)
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.
Re:I tested Copilot in an existing open-source codebase with...
by h0l0cube on Monday August 16, 2021 @05:02AM
(#28196194)
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