doing
function. To indicate a scenario is asynchronous, call this:wait()
, then call this:done()
, to indicate it has completed. Any assert
call which fails will result in the run failing, and stop at that point.cp.spec.Scenario(name[, testFn]) -> cp.spec.Scenario
Scenario
with the specified name.function
which performs the test for in the scenario.Scenario
.testFn
is not provided here, it must be done via the doing method prior to running, an error
will occur.cp.spec.Scenario:doing(actionFn) -> self
function
for the definition.Definition
.cp.spec.Scenario:run(...) -> cp.spec.Run