-
CLI- emitted right at start, before cli is parsed. Allows to add new commands and extend help message. The event is emitted with 1 argumentparserwhich is the commander instance used inside gemini itself. -
INIT- emitted before any job start (test,updateorreadTests). If handler returns a promise then job will start only after the promise will be resolved. Emitted only once no matter how many times job will be performed. -
AFTER_TESTS_READ- emitted after all tests were read (duringtest,updateorreadTestscall). The event is emitted with 1 argumentdata:data.suiteCollection- suite collection with all suites parsed from test files
-
UPDATE_RESULT— emitted always during update. The event is emitted with 1 argumentresult:result.imagePath— absolute path to the reference imageresult.updated— boolean value which istruewhen reference image have been changed andfalsewhen not
-
TEST_RESULT— emitted always after the test is completed. The event is emitted with 1 argumentresult:result.referencePath— absolute path to the reference imageresult.currentPath— absolute path to the current image on your diskresult.equal— boolean value which istruewhen images are equal andfalsewhen aren'tresult.saveDiffTo— function is responsible for building diff and present in theresultonly if images aren't equal
-
INTERRUPT— emitted on signal eventsSIGHUP,SIGINTorSIGTERM. The event is emitted with 1 argumentdata:data.exitCode— exit code with which gemini will be interrupted
-
START_BROWSER— emitted on browser session start. Emitted with browser instance. If handler returns a promise tests will be executed in this session only after the promise is resolved. -
STOP_BROWSER— emitted right before browser session end. Emitted with browser instance. If handler returns a promise quit will be performed only after the promise is resolved. -
BEGIN— runner event. Emitted on runner start with 1 argumentdata:data.suiteCollection— suite collection which will be rundata.config— gemini configdata.totalStates— number of states in collectiondata.browserIds— all browser ids from config
This repository was archived by the owner on Sep 21, 2022. It is now read-only.