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

Visual testing #41

Open
3 tasks
kokes opened this issue Feb 8, 2020 · 1 comment
Open
3 tasks

Visual testing #41

kokes opened this issue Feb 8, 2020 · 1 comment

Comments

@kokes
Copy link
Owner

kokes commented Feb 8, 2020

Since it's quite hard to build proper tests (see #33), we can start by having non-automated visual tests. What I envisage the workflow to be:

  1. Take screenshots of various notebooks in nbviewer.js
  2. Work on whatever changes you want
  3. Take the same screenshots again
  4. Use something like pixelmatch to diff these

What we need in terms of infrastructure:

  • sample notebooks, versioned
  • a way to offer inject a notebook into the viewer (maybe we'll have a separate HTML file for testing, without the dropzone stuff)
  • some code to automate the screenshot taking and diffing
@kokes
Copy link
Owner Author

kokes commented Feb 8, 2020

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

No branches or pull requests

1 participant