Docs/Test Data & State

Step Caching

Step caching remembers the outcome of expensive deterministic steps across runs. If the inputs are unchanged, the cached result is reused instead of re-executing the step.

Enable

assrt.config.yamlyaml
stepCache:
  enabled: true
  dir: ./.assrt/cache

What gets cached

  • Locator resolutions for natural-language elements that did not move.
  • AI extract results on pages with an unchanged DOM hash.
  • Seed data loaded from fixtures.
Busting the cache
The cache keys include the test file hash. Edit the step and the key changes, so you rarely need to invalidate by hand. When you do, delete ./.assrt/cache.