5 ms·
Can Copilot write tests? That way it could test its own code and tweak it until it works. Of course, one would then ask how to verify tests. I suppose Copilot
by paskozdilar 4y ago
Can Copilot write tests? That way it could test its own code and tweak it until it works.
Of course, one would then ask how to verify tests. I suppose Copilot could write meta-tests - tests that verify other tests. That way it could test its own tests and tweak them until they work.
Of course, one would then ask how to verify meta-tests. I suppose Copilot could write meta-meta-tests - tests that verify meta-tests. That way it could test its own meta-tests and tweak them until they work.
Of course, one would then ask how to verify meta-meta-tests...
- DeathArrow 4y ago>Can Copilot write tests? That way it could test its own code and tweak it until it works. Sure it can. But you can't rely on them being good. You have to read the tests carefully.
- prepend 4y agoYou need an adversarial co-pilot to write tests for those tests so you would put the two AIs against each other to try to properly test.
- datatrashfire 4y agoI can almost envision a future where human devs write tests, code generating frameworks build code from a spec.
- paskozdilar 4y agoI think that's the underlying idea of Logic Programming.
- goatlover 4y agoAnd UML diagrams.
- Hnrobert42 4y agoIsn’t this how they managed to stop the Borg?
- frereubu 4y agoGiven my vintage, I'm thinking more about the noughts-and-crosses game in War Games from 1983.
- Hamcha 4y agoI've used Copilot to help with writing verbose unit tests. It can do it as long as you keep an eye over it (basically like an autocomplete), it definitely cannot produce robust test cases on its own though. If you try to do that, it won't take "meta-tests" to figure out they don't look right.