Volume 1 — Building a Test Framework
testbase, arcli, and Single-Host Test Infrastructure
About this volume
Volume 1 stands up the single-host test framework on top of the
foundation tier from Volume 0. Everything Volume 2 (distributed)
adds is an extension of contracts established here: the
TestJob lifecycle, the resource factory model, the streaming
results pipeline, and the landscape boundary. Volume 3 reaches
into Volume 1 for orchestration-level invocation — taskplus
calling a testbase test run from a workflow.
Who it is for
SDETs and test-infrastructure engineers. This is the volume to hand a senior SDET who has been writing pytest for a decade and needs to learn why their tools stop scaling once the system under test is no longer a single Python process.
Source material
codecraftai-testbase— the test framework itselfcodecraftai-arcli— the declarative CLI toolkit underneath everycodecraftai-*CLIcodecraftai-agent-kit— case study source (a 3,700+ test single-host suite)
Contents
- Chapter 1 — Why
unittestandpytestFall Short for Automation - Chapter 2 —
testbaseArchitecture - Chapter 3 — Resource Factories and Dependency Injection
- Chapter 4 — Property-Based Testing with
@given - Chapter 5 — Streaming JSOS Results
- Chapter 6 — The
testbase agentsMachine-Readable CLI - Chapter 7 — Mocking and Stubbing Without the Framework Getting in the Way
- Chapter 8 —
arcli: The Declarative CLI Toolkit - Chapter 9 — Building Tests Around Landscape Concepts (Single-Host Edition)
- Chapter 10 — Case Study: A 3,700-Test Suite That Runs on One Host
How it connects to the other volumes
- Volume 2 (Distributed Automation) extends
TestJob→InteropLibraryTestJob→DistributedTestJob. Chapter 9 carries the single-host half of the contract; chapter 10's case study demonstrates the framework before the chain widens. - Volume 3 (Integration Automation) reaches into Volume 1 for test-run invocation from a taskplus workflow. The arcli decorators in chapter 8 are the same ones taskplus uses.
- Volume 7 (AI Agent SDK) reaches into Volume 1 for the
testbase agentsmachine-readable subcommand surface in chapter 6.
Part of The Code Craft AI Books.