Gemini events

  • UPDATE_RESULT - 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
  • TEST_RESULT - 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