viff
viff copied to clipboard
Viff Testing Framework. Find visual differences between web pages in different environments(developing, staging, production) and browsers.
log: C:\Documents and Settings\caixinbao>npm install viff -g npm WARN deprecated [email protected]: module has been merged into crc3 2-stream \ > [email protected] install C:\Documents and Settings\caixinbao\Application Data\npm\no > de_modules\viff\node_modules\phantom\node_modules\dnode\node_modules\weak > node-gyp...
on windows will through "node_modules/coffee-script/bin/cake" command not found error. use a shell instead.
js如下: 'use strict' var config = module.exports = { seleniumHost: 'http://localhost:4444/wd/hub', browsers: ['chrome'], envHosts: { build: 'http://localhost:80/example/build', prod: 'http://localhost:80/example/prod' }, paths: [], reportFormat: 'file', test: function test (description, caseConfig) {...
as title,and there is the stacktrace. npm WARN optional dep failed, continuing [email protected] npm WARN optional dep failed, continuing [email protected] npm WARN deprecated [email protected]: module has been merged into crc3...
Add a global setting 'misMatchPercentage' to define a KO test beyond this percentage (default is 0%). A comparison of images may sometimes be slightly different (an offset of 1 pixel)....
So it's kinda hard to use this programmatically if you need to rely on CoffeeScript to be in your global path or a pre-existing peer dependency in local node_modules. Happy...
I use the example: 'use strict' // build_prod.config.js module.exports = { seleniumHost: 'http://localhost:4444/wd/hub', browsers: ['firefox'/_, 'chrome', 'safari', 'opera'_/], envHosts: { build: 'http://localhost:4000', prod: 'http://www.ishouldbeageek.me' }, paths: [ '/404.html', '/', '/page2',...