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

Topics covered
Popular Clips
Questions from this episode
- Asked by 46 people
- Asked by 13 people
- Asked by 7 people
Episode Highlights
Flaky Tests
Flaky tests present a significant challenge in automated regression suites, often producing inconsistent results that undermine trust in the testing process. explains that flaky tests occur when a test yields different outcomes upon multiple executions, such as passing four times and failing once 1. He suggests that while large language models (LLMs) can be prompted to avoid generating flaky tests, developers still bear responsibility for minimizing flakiness by focusing on independent components and microservices 1.
Although at CodiumAI we are developing things like that, they're not as mature developers are being needed.
---
Additionally, notes that Cover-Agent validates test cases by checking if they compile and run, discarding those that don't, although future iterations may include mechanisms to fix these issues 2.
Data Complexity
The complexity of using the right data in tests is a crucial aspect of automated testing, especially when involving AI tools. emphasizes that developers must provide additional information from databases and specifications to effectively prompt AI tools like Cover-Agent 3. He describes the concept of "flow engineering," where AI systems follow a structured process to generate tests, enhancing the accuracy and reliability of the outputs 4.
Flow engineering is designing that flow.
---
In this approach, the AI parses coverage reports, infers which lines need coverage, and iteratively generates and validates tests to improve code coverage 5.













