AI-Assisted Test-Driven Development
Published by O'Reilly Media, Inc.
Use generative AI to automate the creation of unit tests for new and existing code
Course outcomes
- Create more unit tests for your code using AI
- Reap the benefits of TDD without spending too much time and effort
- Accelerate the use of feedback loops that many teams shy away from because of the arduous nature of TDD
Course description
You may have thought this many times: “I wish it was easy to do test-driven development.” Now it’s easy—well, almost easy. Using generative AI tools, you can automate the creation of unit tests, either step-by-step in order to test drive, or create in bulk for existing code. The issue is not the availability of tools but the ability to navigate the tool in such a way that it yields the desired results: the code that will serve as useful tests.
Join expert Venkat Subramaniam to discover how to navigate these tools and make sure the tests they generate are of high quality. You’ll learn how tools can help you create the mundane tests you’d otherwise be writing and accelerate the efforts to reap the benefits of the feedback loops that come from the use of automated unit tests.
What you’ll learn and how you can apply it
- Use generative AI to synthesize unit tests
- Evaluate the quality of the generated tests
- Redirect the AI tools to create better quality tests
- Measure code coverage and fill gaps in tests with the aid of AI tools
This live event is for you because...
- You’re a software developer/engineer or senior software developer/engineer.
- You work closely with code.
- You want to learn to use AI tools effectively to improve your code.
Prerequisites
- Programming experience at a beginner or intermediate level
- Some knowledge of Java is helpful
Recommended follow-up:
- Read Generative AI for Software Development (book)
- Watch Software Development Superstream: Generative AI to Improve Software Development (video)
- Take Using LLMs for Software Engineers (live online course with Chelsea Troy)
Schedule
The time frames are only estimates and may vary according to how the class is progressing.
Tools (60 minutes)
- Presentation: Tools to generate automated unit tests
- Group discussion: Ways to use the tools and have a good flow of test and code cycle
- Exercise/Lab: Generate automated tests for a problem
- Q&A
- Break
Test drive the design (60 minutes)
- Presentation: Test drive the design using generative AI
- Group discussion: Measuring the quality of tests generated
- Exercise/Lab: Taking incremental steps for the test and code cycles
- Q&A
- Break
Creating tests (60 minutes)
- Presentation: Creating tests for existing code
- Group discussion: Measuring the quality of tests generated
- Exercise/Lab: Using generative AI to synthesize tests for legacy code and deciding when and when not to do it
- Q&A
- Break
Measuring test coverage (50 minutes)
- Presentation: Measuring test coverage and filling the gaps
- Group discussion: Continuously measure and improve incrementally
- Exercise/Lab: Using generative AI to synthesize missing tests to fill the gaps
- Q&A
Wrap-up and Q&A (10 minutes)
Your Instructor
Venkat Subramaniam
Venkat Subramaniam is the founder of Agile Developer Inc., creator of Agilelearner.com, cofounder of the dev.next software conference, and an instructional professor at the University of Houston. Venkat helps his clients effectively apply and succeed with sustainable Agile practices on their software projects. He’s trained and mentored thousands of software developers in the US, Canada, Europe, and Asia and is a regularly invited speaker at several international conferences. He’s also the author or coauthor of a number of technical books, including the 2007 Jolt Productivity Award-winning Practices of an Agile Developer.