03 "AI Programming 2.0" Let AI Test Server-Side Code Itself. In the previous post, we enabled AI to open the browser to debug frontend effects, solving the problem of frontend testing. So what about the other half—how to test server-side interfaces? Yes, as anyone would think, first comes unit testing. Unit tests are a must, but they are not enough. It is essential for the AI to be able to check service logs on its own. The focus of this post is how to teach the AI to check service logs itself. This is the second step to freeing your hands. First, about unit testing, tell the AI: Create test case documents based on requirements, and ensure code correctness through unit and
03 "AI Programming 2.0" Let AI Test Server-Side Code Itself In the previous post, we enabled AI to open the browser to debug frontend effects, solving the problem of frontend testing. So what about the other half—how to test server-side interfaces? Yes, as anyone would think, first comes unit testing. Unit tests are a must, but they are not enough. It is essential for the AI to be able to check service logs on its own. The focus of this post is how to teach the AI to check service logs itself. This is the second step to freeing your hands. First, about unit testing, tell the AI: "Create test case documents based on requirements, and ensure code correctness through unit testing and automated testing." This phrase is very effective. I've been using it for 2 or 3 months. Whether for frontend or backend requirements, I add this to the notes, and many times the acceptance passes on the first try. Now about checking service logs—don't bother looking for ready-made MCPs or Skills; it's not necessary. I mentioned this before in...
No comments yet. Be the first to share your thoughts.