Skip to content

Testing

jason humphrey edited this page Dec 31, 2016 · 6 revisions

Testing

NPM Test / Everything

# Make sure you haves a selenium sever on 
# https://www.npmjs.com/package/selenium-standalone
npm test

Nightwatch / E2E

npm install -g nightwatch
nightwatch
# or
npm run e2e

Karma / Frontend

npm install -g karma
karma start tests/unit/karma.test.js
# or
npm run karma

Mocha & Chai / Backend

npm install -g mocha
mocha tests/unit/mocha.test.js
# or
npm run mocha

Standard / JS Style

npm install -g standard
standard
# or
npm run standard

Need help installing?

Easiest way to start testing your whole system

npm run cli
# select - Install Selenium Server
# once installed - Start Selenium Server
npm test

Note you must have mongodb running and if you dont then

npm run cli
# the select - Install MongoDB
# in a new window or tab select - Start Mongod
Clone this wiki locally