visreg-static
v0.1.5
Published
a visual-regression-test tool to find diffs between static html files.
Downloads
2
Readme
visreg-static
a visual-regression-test tool to find diffs between static html files.
This renders html files inside the specified folder by using a headless browser, and compare the result to those in SVN repo to output a diff image.
Might be useful to check unexpected side-effects when you change css files.
Simpler version, which does not use SVN, is available below.
visdiff-static
REQUIREMENTS
- Node v7.6.0
Essential for async/await. - Any cli svn clients.
Which means, TortoiseSVN is not supported.
INSTALLATION & USAGE
npm i -g visreg-static
visreg-static <localFolder> <repoUrl> <userName> <passWord>
// localFolder = full path to where you checked out html files from SVN repo
OR if you dont want to corrupt your global package:
cd /some/folder/you/would/like
git clone https://github.com/setsuyaosumi/visreg-static.git
cd visreg-static
npm i
npm run visreg-static <localFolder> <repoUrl> <userName> <passWord>
// localFolder = full path to where you checked out html files from SVN repo
OUTPUT
Output images are inside:
currentDirectory/diff
Wut? Subversion?
~~yep. cz ma' client insists.~~