ScenarioExplorer
scalus.testing.ScenarioExplorer
object ScenarioExplorer
Explores contract state space by applying actions at each step.
ScenarioExplorer performs bounded exploration of contract interactions. At each depth it:
- Gets a snapshot reader
- Calls the step function which performs one interaction using normal Scenario operations
- Actions (Scenario.submit, Scenario.sleep) are automatically logged
- On successful step, recurses to next depth
- On check failure, captures violation with the full action path
- On other errors, propagates
The step function can use Scenario.choices/Scenario.fromCollection for branching, Scenario.submit for transactions, Scenario.sleep for time advancement, and Scenario.check for invariant verification.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ScenarioExplorer.type
Members list
In this article