Storage Engines¶
Each store can use the following hook functions to initialize:
Initialize Phase:
init()
- initialize store while new suite is being createdsetUp()
- prepare storage streams, called before running tests
Data Events:
status(path: string, type: string, start: Date, status: string, error?: Error)
data(path: string, type: string, start: Date, status: string, result: any)
action(path: string, type: string, status: string, error: Error)
Shutdown Phase:
cleanup()
- do maintenance stuff like removing of old entries, called after runtearDown()
- close storage streams, called after running tests
Environment¶
The following elements are accessable:
setup
- configuration of storedebug
- logger for debug messages