> Markdown version of [/videos/722-are-you-still-programming-unit-tests-or-already-generating?t=833](https://www.wearedevelopers.com/videos/722-are-you-still-programming-unit-tests-or-already-generating?t=833). Every page supports `.md` or `Accept: text/markdown`. Links point to the HTML versions so they work for humans too. Agent guide: [/agents.md](https://www.wearedevelopers.com/agents.md). --- # Are you still programming unit tests or already generating? Are your AI-generated unit tests just reinforcing your own syntax mistakes? Discover how to automatically generate intelligent, risk-based unit tests directly from system requirements instead. - **Speakers:** [Johannes Bergsmann](https://www.wearedevelopers.com/@johannes-bergsmann), Daniel Bauer - **Event:** World Congress 2023 - **Published:** September 27, 2023 - **Duration:** 29:31 - **URL:** https://www.wearedevelopers.com/videos/722-are-you-still-programming-unit-tests-or-already-generating ## Summary Automated test generation offers a bridge between developers, testers, and requirements engineers by extending black-box testing principles into unit testing. Reaching true unit testing maturity requires moving beyond arbitrary white-box code coverage targets, which only verify execution paths, to defining adequate risk-based testing goals derived from system requirements. By applying equivalence class partitioning and boundary value analysis to method signatures, teams can systematically uncover missing input validations and edge cases caused by misunderstood business rules. The semantic-driven sequence is operationalized by parsing local source code to extract method interfaces and presenting them in a structured UI without compromising code confidentiality. Developers describe valid and invalid data points based on business requirements, which are then merged via a pairwise combination algorithm into efficient, parameterized unit tests for languages like Java, C#, and C++. Because the definitions are stored in versionable JSON models, this visual and data-centric workflow easily integrates into existing continuous integration pipelines. Using generative AI within this lifecycle is most effective when proposing test scenarios directly from requirement documents rather than auto-completing test code from existing implementation logic. Generating tests purely from source code often reinforces developer syntax mistakes instead of validating the intended semantic behavior. Standardizing structured test case generation empowers engineering teams to spend less time manually writing repetitive assertions and more time ensuring strict software quality. **Keywords:** automated test generation, black-box unit testing, equivalence class partitioning, boundary value analysis, programmatic code coverage, pairwise test combination, parameterized unit tests, risk-based testing goals, json intermediate test models, local source code parsing, visual test management, semantic requirement validation, unit testing maturity levels, generative ai test proposals ## Chapters 1. **Bridging developers, testers, and requirements engineers in testing** (00:00) — Transforming source code testing into a visualized platform enhances collaboration between technical and business teams. 1. **Incorporating black box methods into unit testing** (01:29) — Extending black box interface methodologies to unit tests addresses critical requirement logic gaps missed by source code analysis. 1. **Applying equivalence class and boundary value analysis** (03:12) — Reducing redundant test cases requires identifying requirement-based value ranges and explicitly testing inner and upper boundaries. 1. **Advancing through unit testing maturity levels** (06:47) — Shifting from arbitrary code coverage targets to risk-based testing strategies establishes more meaningful software quality metrics. 1. **Writing effective tests over chasing maximum coverage** (09:05) — Achieving complete code coverage without applying functional validation rules fails to guarantee robust software implementation. 1. **Generating test code through an intermediate model** (11:09) — Parsing interface signatures into a version-controlled intermediate dataset enables structured generation of standard unit testing code. 1. **Defining semantic test cases with pairwise combinations** (13:53) — Injecting requirement-based input boundaries into test automation systematically derives critical edge cases without manual enumeration. 1. **Visualizing testing workflows with standalone modeling tools** (19:46) — Transitioning test management to a standalone graphical canvas enables visual collaboration on complex scenarios and decision flows. 1. **Automating deterministic test components without generic AI** (21:40) — Prompting generative models for unit tests often reflects existing code biases rather than explicitly validating true software requirements. 1. **Handling local analysis, codebase updates, and environment compatibility** (24:55) — Running deterministic generators securely on local developer machines allows rapid test recalibration when refactoring source parameters. ## Related Moments - [Demonstrating automated unit test generation for legacy java](https://www.wearedevelopers.com/videos/100256-can-this-elephant-dance-ibm-bob-and-the-future-of-ai-first-software-development) (from "Can This Elephant Dance? IBM Bob and the Future of AI-First Software Development") - [Evaluating automated approaches for generating unit test cases](https://www.wearedevelopers.com/videos/85-how-will-artificial-intelligence-change-the-future-of-software-testing) (from "How will artificial intelligence change the future of software testing?") - [Iterating automated unit test generation with coverage metrics](https://www.wearedevelopers.com/videos/1540-rethinking-workflows-in-the-agentic-era) (from "Rethinking Workflows in the Agentic Era") - [Bridging the gap between AI code generation and verification](https://www.wearedevelopers.com/videos/100166-shipping-with-confidence-observability-and-quality-at-scale) (from "Shipping with Confidence: Observability and Quality at Scale") - [Automating epic generation and semantic analysis for test management](https://www.wearedevelopers.com/videos/100084-aiqspecflow-improves-and-automates-your-agile-process-of-specification-and-creation-of-testcases) (from "AIQSpecFlow: Improves and automates your agile process of specification and creation of testcases.") - [Using automated tests to validate AI generated codebases](https://www.wearedevelopers.com/videos/1453-10-commandments-for-vibe-coding) (from "10 commandments for vibe coding") ## Related Articles - [Transforming Software Development: The Role of AI and Developer Tools](https://www.wearedevelopers.com/magazine/527-transforming-software-development-the-role-of-ai-and-developer-tools) - [The 8 Best Code Testing Tools](https://www.wearedevelopers.com/magazine/402-the-8-best-code-testing-tools) - [Integration And E2E Testing: Are They Complementary or Interchangeable?](https://www.wearedevelopers.com/magazine/86-integration-and-e2e-testing-are-they-complementary-or-interchangeable) - [13 AI Tools for Developers](https://www.wearedevelopers.com/magazine/302-13-ai-tools-for-developers) ## Related Jobs - [AI Software Engineer (Germany)](https://www.wearedevelopers.com/jobs/48317-ai-software-engineer-germany) at **Sunhat** - [QA Automation Engineer](https://www.wearedevelopers.com/jobs/ext/1414297-qa-automation-engineer) at **Bitpanda** - [Software Tester (f/m/d)](https://www.wearedevelopers.com/jobs/44712-software-tester-f-m-d) at **Power Plus Communications** - [Senior AI Agent Software Engineer (Go, Python) (m/f/x)](https://www.wearedevelopers.com/jobs/48277-senior-ai-agent-software-engineer-go-python-m-f-x) at **Dynatrace** - [Software Tester](https://www.wearedevelopers.com/jobs/ext/1209689-software-tester) at **BWI GmbH** - [Test Engineer](https://www.wearedevelopers.com/jobs/ext/1872489-test-engineer) at **ZEISS Group**