Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix silent fail when error in image processing #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Ftelf
Copy link

@Ftelf Ftelf commented Aug 8, 2019

Fixes problem with NWJS parallel run and when there is any error in jimp or fs. Before this error there is no error thrown and the whole testSuite would just fail silently. With this fix the assert fails with error message like:
- Verify Screenshoot #3 (3.322s) Visual regression test results for element <.DashboardLayout_topBar .AppHeaderLayout_navigation>. - expected "true" but got: "Error: Invalid file signature" at Object.screenshotIdenticalToBaseline [as Verify Screenshoot #3] (###\e2e\tests\BVT-Dataload/PG-DEBUG-000.js:43:8) at process._tickCallback (internal/process/next_tick.js:176:11)
This problem could occur quite easily as it is a good idea to store image files as git-lfs. But when LFS fails for any reason like server update etc. All tests would just start to fail silently because instead of the images there would be LFS placeholders.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants