From the course: Test-Driven Development in an AI World
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Enhancing test quality with GitHub Copilot
From the course: Test-Driven Development in an AI World
Enhancing test quality with GitHub Copilot
- [Instructor] Copilots Inline Chat lets you insert AI-generated content straight into your files. This is perfect for small edit edits, but for more complex changes, you'll need a tool with greater context and flexibility. That's where Copilot Chat steps in. Close the Inline Chat using the Escape key and navigate to the upper-right corner where the GitHub Copilot Chat icon is located. Clicking here opens an interactive space for advanced AI requests. You can ask anything you want about your code, for example, which framework is used in this project? And as you can see, Copilot is answering that we're using React, Vite, and React Router, which is correct. Copilot Chat supports comments. You can see a full list just by typing "slash". In this case, I want to use the comment "clear". This wipe out previous conversations. This prevents old chats from affecting new prompts. And as a best practice, always start prompts by clearing the chat. To reuse previous prompts, hit the up arrow to…