OpenAI GPT Powered Test Driven Development. Give Me Tests, I'll Give You Code.MotivationWith the introduction of ChatGPT, one interesting feature it provides is that it can generate code! However, given a prompt for the desired code, the response is often kinda wonky. So, rather than giving it a prompt, why not give it a test? This is the idea behind loop, a VS Code extension that supports test-driven development by generating code that passes given tests. UsageFull Test SuitePartial Test SuiteConfiguring the extensionThere are 2 settings that can be used to configure the extension. Notably, you MUST supply your own OpenAI API key. You can see how to generate one here. I would love to be able to provide a key for everyone to use, but unfortunately, I am poor 😅
|