nbviewer.js
nbviewer.js copied to clipboard
Visual testing
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:
- Take screenshots of various notebooks in nbviewer.js
- Work on whatever changes you want
- Take the same screenshots again
- 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
wip: https://github.com/kokes/nbviewer.js/tree/issue41