-
Notifications
You must be signed in to change notification settings - Fork 408
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
[tests] Setup JS Visual Regression Testing #387
[tests] Setup JS Visual Regression Testing #387
Conversation
- Use jest-image-snapshot to generate and compare snapshots - Use puppeteer to launch chromium browser in headless mode - Use finalhandler and static-serve to finalize requests and serve static content easily - Update package.json with required packages
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small nit.
src/esp/bindings_js/tests/server.js
Outdated
await new Promise(resolve => server.close(resolve)); | ||
} | ||
|
||
export async function generateImage(path) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is this called?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm afraid my JS knowledge is too minor to be able to provide any valuable feedback. Indentation looks okay, tho :D
await new Promise(resolve => server.close(resolve)); | ||
} | ||
|
||
export async function generateImage(path) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needed?
Codecov Report
@@ Coverage Diff @@
## master #387 +/- ##
==========================================
+ Coverage 53.86% 54.01% +0.15%
==========================================
Files 164 165 +1
Lines 7719 7751 +32
Branches 82 84 +2
==========================================
+ Hits 4158 4187 +29
- Misses 3561 3564 +3
Continue to review full report at Codecov.
|
* added gibson large generation script * ran black for formatting * updated number of episodes, moved to ddppo directory * updated license to include data generation * added header * changed const to upper case * added separate function call * Update README.md Co-authored-by: dhruvbatra <dhruvbatra@users.noreply.github.com> Co-authored-by: Santhosh K. Ramakrishnan <sramarki@fb.com> Co-authored-by: dhruvbatra <dhruvbatra@users.noreply.github.com>
- Use jest-image-snapshot to generate and compare snapshots - Use puppeteer to launch chromium browser in headless mode - Use finalhandler and static-serve to finalize requests and serve static content easily - Update package.json with required packages
static content easily
Motivation and Context
Visual Regression Testing is a good way to catch regressions in the code. In JS specifically, since we are rendering on browser side, things should be consistent. The PR aims to introduce first test that uses visual regression testing.
How Has This Been Tested
npm test
Types of changes
Checklist