SE Radio 633: Itamar Friedman on Automated Testing with Generative AI

Topics covered
Popular Clips
Questions from this episode
- Asked by 39 people
- Asked by 11 people
- Asked by 5 people
Episode Highlights
Code Coverage
Understanding code coverage is crucial in software testing, as it measures how much of the code is executed during testing. explains that while high code coverage can indicate thorough testing, it doesn't guarantee the absence of bugs, as tests might not effectively validate the code's functionality 1. He emphasizes that component testing, which covers larger code segments than unit tests, can provide more comprehensive insights into software behavior 2.
The test coverage could be even 100% or close to it and it's not working. And we're all like happy. But no, the sort function doesn't work.
---
This highlights the complexity of relying solely on coverage metrics for software quality assurance.
Branch Coverage
Branch coverage is a more nuanced metric than line coverage, focusing on how well different branches in the code are tested. notes that achieving comprehensive branch coverage is challenging, but large language models (LLMs) can assist by generating tests that cover various branches 3. He explains that Cover-Agent, a tool developed by his team, uses LLMs to enhance code coverage by automatically generating tests, particularly excelling in component testing 4.
LLM opens the opportunity to work with branch coverage for two reasons.
---
This approach helps testers ensure that all possible execution paths are considered, improving the robustness of the software.
Test Coverage
Cover-Agent is designed to enhance test coverage by generating additional tests, thus reducing the manual effort required in testing. describes how the tool can generate edge cases and complementary tests, which are crucial for achieving high code coverage 5. Although primarily implemented in Python, Cover-Agent can be adapted for other programming languages, provided the LLMs are trained on them 6.
It's aiming to generate edge cases and like complementary tests and help you think about your testing eventually.
---
This flexibility makes Cover-Agent a valuable asset in diverse software development environments.
Related Episodes


SE Radio 603: Rishi Singh on Using GenAI for Test Code Generation
Answers 383 questions

SE-Radio Episode 283: Alexander Tarlinder on Developer Testing
Answers 383 questions

SE-Radio Episode 256: Jay Fields on Working Effectively with Unit Tests
Answers 383 questions

366: Test Automation
Answers 383 questions

SE-Radio Episode 324: Marc Hoffmann on Code Test Coverage Analysis and Tools
Answers 383 questions

SE Radio 626: Ipek Ozkaya on Gen AI for Software Architecture
Answers 383 questions

SE Radio 585: Adam Frank on Continuous Delivery vs Continuous Deployment
Answers 383 questions
SE Radio 632: Goran Petrovic on Mutation Testing at Google
Answers 383 questions

SE Radio 572: Gregory Kapfhammer on Flaky Tests
Answers 383 questions

SE Radio 625: Jonathan Schneider on Automated Refactoring with OpenRewrite
Answers 383 questions

SE-Radio Episode 357: Adam Barr on Code Quality
Answers 383 questions

SE Radio 648: Matthew Adams on AI Threat Modeling and Stride GPT
Answers 383 questions

Episode 521: Phillip Mayhew on Test Automation in Gaming
Answers 383 questions

SE Radio 647: Praveen Gujar on Gen AI for Digital Ad Tech Platforms
Answers 383 questions

SE-Radio Episode 295: Michael Feathers on Legacy Code
Answers 383 questions













