 Manually writing tests for functions and methods in your code can be time-consuming. What if you could automate this repetitive task? GitLab Duo Test Generation uses AI to understand the context of your code and generate appropriate tests for it. As developers work on an application, they can open up a specific source code file, select some source code lines, and invoke Test Generation, which then generates a set of tests. Developers can copy the generated tests, create a new file for the generated tests in a specific location in their project, paste them in, and proceed to commit the updates to the repository. GitLab Duo Test Generation helps you catch bugs early and spend more time on innovation and less on repetitive tasks, while still maintaining a high standard of code quality.