Testing AI, Duplicate Test Detection, and the Death of Cucumber TGNS190
Categories: Podcasts , Test Guild News Show
AI testing faces challenges like costly real-model calls and redundant AI-generated tests, solved by mocking responses and tools like Semantic Graph for clustering. New tools like Relief Scout and VAR enhance API safety and collaboration, while testers evolve into “quality architects” embedding guardrails, supported by frameworks for non-deterministic AI confidence.
Test Guild News Show
Test Guild News Show hosted by Joe Colantonio has a round up of Software Testing Tool news and updates. Released as audio and video. Show notes have links to source of each news update.
- https://testguild.com/podcasts/news/
- https://www.youtube.com/playlist?list=PL9AgRtJkydU1WSjOuUkOeRFTDN5dPyL6u
Episode Details
- Show Notes: https://testguildnews.libsyn.com/testing-ai-duplicate-test-detection-and-the-death-of-cucumber-tgns190
- Published: 2026-07-20T21:51:00Z
- Duration: 09:34
- Author: Unknown
Overview
The podcast discusses key challenges and solutions in testing AI-powered applications. A major issue highlighted is the high cost of running test suites that make real calls to AI models, which can be mitigated by mocking model responses while preserving real UI and API interactions. Additionally, AI-generated tests often lead to bloated, redundant test suites; to address this, tools like Semantic Graph help identify and remove duplicate tests using similarity clustering, improving efficiency and test accuracy.
Another focus is on improving API testing for AI agents using tools like Relief Scout, which enforces safety constraints, rate limits, and secure request handling based on OpenAPI specs. The discussion also introduces VAR, a new tool replacing Cucumber, designed for executable documentation using markdown and enabling better collaboration between humans and AI. The conversation extends to evolving testing roles, advocating for testers as “quality architects” who embed automated guardrails into development workflows, and introduces a book on building confidence in non-deterministic AI systems through statistical analysis, trace evaluation, and improved testing frameworks.
What If
-
What if you replaced real AI model calls in your test suite with deterministic mocks?
- Move: Use a testing harness (like the Playwright + scriptable mock setup) to intercept AI model API calls in your integration tests and return predefined responses. Configure it to only allow mocked replies, with hard fails if real calls are attempted.
- Why Now?: AI model call costs compound quickly in CI/CD pipelines - especially when tests run on every PR. A single undetected live call can spike bills and create flaky, unreliable feedback.
- Expected Upside: Immediate cost reduction (potentially 90%+ of testing-related AI spend), faster and more consistent test runs, and clearer ownership of test behavior without external model volatility.
-
What if you audited your AI-generated test suite for redundancy using semantic clustering?
- Move: Run Semantic Graph (or a similar CLI) on your test files to cluster and detect duplicate or near-identical AI-generated tests. Remove or consolidate clusters above the 0.92 similarity threshold.
- Why Now?: AI agents generate tests rapidly but often repeat scenarios, bloating CI time and diluting real coverage. This false sense of coverage delays meaningful quality signals.
- Expected Upside: 30 - 50% reduction in test count, faster CI cycles, and a leaner suite focused on unique edge cases - freeing up time for higher-value validation.
-
What if you switched from brittle BDD frameworks to lightweight, executable markdown for API testing?
- Move: Replace Cucumber-style test definitions with VAR - using plain markdown files that parse OpenAPI specs and execute live API checks as part of documentation. Run these as part of PR validation.
- Why Now?: Legacy BDD tools introduce friction with syntax overhead and poor editor support, especially for solo developers. Maintaining living docs that are the tests reduces drift and setup cost.
- Expected Upside: Eliminate duplication between docs and tests, gain real-time confidence in API behavior, and improve collaboration - even with AI agents - via simple, readable, version-controlled test scenarios.
Takeaway
- Use scripted responses to mock AI model calls in tests, keeping UI and API integration intact to reduce costs and avoid flaky, expensive test runs.
- Integrate Semantic Graph into your CI pipeline to detect and remove semantically duplicate tests, especially those generated by AI, to maintain fast and meaningful test suites.
- Adopt Relief Scout for API testing with AI agents by leveraging OpenAPI specs, enforced rate limits, and safe request defaults to prevent accidental cost overruns and security issues.
- Replace rigid BDD tools like Cucumber with VAR for executable documentation, using plain markdown files that run as isolated tests and improve collaboration between code, humans, and AI.
- Implement commit gates with automated checks (unit tests, vulnerabilities) and real-time editor analysis to catch issues early, reducing reliance on end-of-cycle testing and improving code quality workflow.
For a PDF of longer Software Testing Podcast Episode Summaries with Briefing Notes and more detailed summary notes, visit EvilTester Patreon Podcast Summaries.