Setup the development environment by installing Node.js:
See nodejs.org.
Install the Grunt Command Line Interface to setup the task runner:
npm install -g grunt-cli
Install the bower package manager for managing 3rd party libraries:
npm install -g bower
Install the project build tools (grunt tasks and dependencies) as node modules:
npm install
Install the 3rd party libraries (jQuery, Bootstrap, etc.) as bower components:
bower install
Perform continuous unit tests (rerun on file changes until quit):
grunt karma:unit
Create a code coverage report in the coverage
directory:
grunt karma:coverage
Execute the end-to-end tests via command-line:
Run the Selenium installation script, located in the local node_modules/ directory
This script downloads the files required to run Selenium itself and build a start script and a directory with them.
./node_modules/protractor/bin/webdriver-manager update
Start the standalone version of Selenium with the Chrome driver by executing the start script
./node_modules/protractor/bin/webdriver-manager start
launch Protractor to actually run the tests.
protractor public/test/e2e/protractor.conf.js