-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: get rid of tight coupling with hermione and move image proc…
…essing logic out of test-adapter (#491) * refactor: get rid of hermione in sqlite-adapter * refactor: get rid of hermione in test-adapter * refactor: get rid of hermione in static report builder * refactor: use correct types for workers in test-adapter * refactor: move image processing logic out of test-adapter
- Loading branch information
Showing
33 changed files
with
1,499 additions
and
1,243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
export enum PluginEvents { | ||
DATABASE_CREATED = 'databaseCreated', | ||
TEST_SCREENSHOTS_SAVED = 'testScreenshotsSaved', | ||
REPORT_SAVED = 'reportSaved' | ||
REPORT_SAVED = 'reportSaved', | ||
IMAGES_SAVER_UPDATED = 'imagesSaverUpdated' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import {CoordBounds} from 'looks-same'; | ||
import {DiffOptions, ImageData} from '../types'; | ||
|
||
export enum ErrorName { | ||
IMAGE_DIFF = 'ImageDiffError', | ||
NO_REF_IMAGE = 'NoRefImageError' | ||
} | ||
|
||
export interface ImageDiffError { | ||
name: ErrorName.IMAGE_DIFF; | ||
message: string; | ||
stack: string; | ||
stateName: string; | ||
diffOpts: DiffOptions; | ||
currImg: ImageData; | ||
refImg: ImageData; | ||
diffClusters: CoordBounds[]; | ||
diffBuffer?: ArrayBuffer; | ||
} | ||
|
||
export interface NoRefImageError { | ||
name: ErrorName.NO_REF_IMAGE; | ||
stateName: string; | ||
message: string; | ||
stack: string; | ||
currImg: ImageData; | ||
refImg: ImageData; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const cacheAllImages = new Map<string, string>(); | ||
export const cacheDiffImages = new Map<string, string>(); | ||
export const cacheExpectedPaths = new Map<string, string>(); |
Oops, something went wrong.