From the course: Structured Vibe Coding with AI Coding Agents

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Execute: Test-driven development with your AI agent

Execute: Test-driven development with your AI agent

From the course: Structured Vibe Coding with AI Coding Agents

Execute: Test-driven development with your AI agent

- [Instructor] In the last video, we created a simple landing page for our AI engineering consulting service. In this session, we are going to improve the page by tightening the email validation logic. More importantly, we will walk through the ping pong method of working with AI coding agents. This is the current state of our landing page. We have a name and email input box. But right now it accepts pretty much any string that looks vaguely like an email, which is not ideal. Right, so let's give it a try. And this is not ideal, so let's fix that. We are going to demonstrate the ping pong development method. In this workflow, we will use AI agent to write the test and then have the AI agent update the code until all tests passes. This is also known as a test-driven development. So we will go to VS Code and start asking the agent to write unit test for the email validation function. So here we are. Please write unit test to verify the email validation component. We should only allow…

Contents