Deterministic Simulation Testing Martin Fowler Martin Fowler martin@martinfowler.com https://martinfowler.c… 5 天前 martinfowler.com Contents Limitations of Standard Testing Mechanisms Gray Failures From Chaos Engineering to Correctness Checking The Nondeterminism Problem Sources of Nondeterminism Making Progress Explicit Example Implementation Single-Threaded Execution Simulating the Network Routing Messages to Processes Timeouts in Ticks Testing with a Simulated Cluster Seeded Fault Injection Fast-Forward Execution Correctness Checking Simulating the File System Non-Blocking Futures Trade-offs Strict Coding Rules Production Cost Ease of Building and Evolving Learning and the Use of LLMs Sidebars Deciding the Boundary: Messages or Bytes Tick-Based Timeouts in etcd Application-Level vs. Hypervisor-Level Simulation