A ready-to-go headless Ubuntu box for running NW.js unit and end-to-end tests via Xvfb.
- NW.js
- Karma, Protractor, Jasmine
- Gulp
- Xvfb
vagrant up
to provision the box with the ansible playbookvagrant ssh
to shell into the boxcd /vagrant
to enter the directory syncd to your host machinegit clone https://github.com/mdb/nw-app-testing.git
to clone an example appcd nw-app-testing
npm install
gulp test
to run unit testsgulp e2e
to run end-to-end tests
The Vagrant box has no GUI, but your Mac does! Connect to the Vagrant box from your Mac via VNC to observe and debug.
Install & run x11vnc on the vagrant box
vagrant ssh
sudo apt-get install x11vnc
x11vnc -display :0 &
Install and run Tiger VNC Viewer on your Mac
brew install Caskroom/cask/tigervnc-viewer
- start Tiger VNC viewer on
localhost:5901
Run the tests on the Vagrant box and watch from Tiger VNC Viewer.
Deploy to AWS? Digital Ocean? OpenStack?