8000 gemini/doc/events.md at v4.7.2 · gemini-testing/gemini · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Sep 21, 2022. It is now read-only.

Latest commit

 

History

History
11 lines (9 loc) · 771 Bytes

events.md

File metadata and controls

11 lines (9 loc) · 771 Bytes

Gemini events

  • updateResult - emitted always during update. The event is emitted with 1 argument result:

    • result.imagePath - absolute path to the reference image
    • result.updated - boolean value which is true when reference image have been changed and false when not
  • testResult - emitted always after the test is completed. The event is emitted with 1 argument result:

    • result.referencePath - absolute path to the reference image
    • result.currentPath - absolute path to the current image on your disk
    • result.equal - boolean value which is true when images are equal and false when aren't
    • result.saveDiffTo - function is responsible for building diff and present in the result only if images aren't equal
0