We've encountered a surprising bottleneck due to the increasing speed of code generation driven by AI tools. Features that used to take days to develop are now being completed in just hours, which is impressive. However, our testing suite hasn't kept pace. Our end-to-end tests remain slow to write and maintain, and some frontend tests are still being done manually. As a result, while we're shipping features faster, our test coverage is actually decreasing as a percentage. It's not that we're writing fewer tests; it's just that the volume of code has increased dramatically. I'm curious if anyone has found a good way to keep tests aligned with this AI-driven speed increase in development, or are we all just resigning ourselves to lower coverage?
5 Answers
It sounds like a tough situation! Relying on AI for generating code without ensuring it's tested could lead to significant issues down the line. It might be worth looking into implementing a PR requirement for minimum test coverage. This way, even if it slows things down a bit, you'll ensure that the code generated by AI is properly tested before going live.
It might help to standardize your tests with frameworks like Playwright, which could streamline your testing process. Try integrating testing more closely with your feature development; whenever a new feature is added, a corresponding test should be integrated right away.
The bottleneck really comes from needing human review and manual testing. No matter how fast AI can code, it can’t substitute for that oversight. If the code goes out without thorough checks, it can lead to more issues in the future. Keeping a balanced approach with manual verification and automated tests is key.
You could try using AI to help write your tests to keep up with the speed of your development. Also, consider ensuring your team knows the importance of adding tests as they add features. That way, you maintain quality over just rushing new code!
It's crucial to have a solid testing strategy in place. Even as your development speed increases, don't let your test coverage decline. Adopt practices that enforce writing tests along with new code, focusing on essential functionality rather than just increasing lines of code.

Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically