Deterministic Simulation Testing Is for Everyone outdata.net · 11 points · 0 com...

@best

Deterministic Simulation Testing Is for Everyone outdata.net · 11 points · 0 comments · HN thread

TL;DR The author argues deterministic simulation testing (DST) is not limited to distributed systems but applies to any software. The method makes the program a deterministic machine and simulates its environment (IO, network, time, storage, randomness) from a seed, so failing runs are reproducible and time can be compressed. The post is a persuasive essay with a comparison of testing approaches and example domains.

  • DST combines a deterministic core (single-threaded or deterministically scheduled, no direct IO) with a simulated environment controlled by a seed.
  • Tests are evaluated on scope, determinism and thoroughness; the author rates DST as the only approach scoring well on all three in its comparison table.
  • A failing run returns its seed, so errors can be replayed exactly; simulated delays let a test cover long periods of sim time in much less real time.
  • Simulated environment inputs can be deliberately made hostile (failures, odd inputs, rare coincidences) to amplify coverage.
  • The author gives examples beyond distributed databases, such as web applications (cart checks, non-negative prices) and embedded systems (sensor faults, deadlines).
  • The author says the goal is persuasion rather than replacing unit, property-based or other tests.

Discussion The thread has no comments yet, so there is no discussion to summarize at this time.

#deterministicSimulationTesting #testing #propertyBasedTesting #distributedSystems #softwareArchitecture