SnapTest Chromeless Harness
Development (local) version (MAC)
Installation:
Requirements
- Node 8.2+
- Chrome Canary or have Chrome 60+
In a different directory:
- Clone chromeless into another directory
- Install
npm install
- Build:
npm run build
- Link:
npm link
In this directory:
- Link:
npm link
Running tests:
- Make an alias to canary
alias canary="/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary"
- Launch Chrome with a debugger port open. This process will need to stay open:
canary --remote-debugging-port=9222
orchrome --remote-debugging-port=9222 --disable-gpu --headless
- Run a single test:
node example.js
- Multiple tests: Not supported (Integration with mocha coming soon)