-
CLI
- emitted right at start, before cli is parsed. Allows to add new commands and extend help message. The event is emitted with 1 argumentparser
which is the commander instance used inside gemini itself. -
INIT
- emitted before any job start (test
,update
orreadTests
). 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
,update
orreadTests
call). 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 istrue
when reference image have been changed andfalse
when 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 istrue
when images are equal andfalse
when aren'tresult.saveDiffTo
— function is responsible for building diff and present in theresult
only if images aren't equal
-
INTERRUPT
— emitted on signal eventsSIGHUP
,SIGINT
orSIGTERM
. 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