Scenarios
The usage of arguments and lists will get pretty far already, but Fluse is designed to deal with more complex scenarios.
The scenario
api lets you do this in a declarative way.
The above example shows how we create a complex scenario using just 3 fixture definitions: userFixture
, postFixture
and commentFixture
.
The scenario
composer is type-safe all the way through. You're able to use fixture data previously created in the chain and pass them as input to the next fixture making the possibilities almost endless.
In cases where you are executing scenario's directly you can also skip the compose
step and directly execute the scenario: