Skip to content
DannoHung edited this page Sep 13, 2010 · 1 revision

There are currently a few callbacks available in the framework to allow end users to simply introspect or change the behavior of qspec. More callbacks may be added later.

.tst.callbacks.descLoaded

This callback is called with the specification object created after a specification has been created using the .tst.desc keyword. The test runner uses this callback to collect specifications without having to assign them to a variable explicitly.

.tst.callbacks.expecRan

This callback is called with the expectation object that each expectation generates after it has been run. The test runner uses this callback to provide the status line summary as the tests run before test results are fully displayed.

Clone this wiki locally