- use SocketStream
- make AngularJS unit and E2E Tests work (refer to this thread)
- include unit test coverage report
- use LiveScript, LESS and Jade
- node-jscoverage, needed for unit test coverage report
- PhantomJS, need by mocha-phantomjs from CLI
Run
$./scripts/install.sh
besides
npm install
it also globally install some npm binaries needed, e.g.
npm -g install [email protected]
to supports test spec files in LiveScript
$./scripts/web-server.sh
server listen on http://localhost:4000/app
http://localhost:4000/test/client
$./scripts/test.sh
use SS_PACK=1 and load the minified js in client/static/assets, in which SS style 'require' is defined:
$./scripts/test-jasmine.sh
will run
./scripts/pack.sh
first to only pack files (not launch server)
First have the web server running
$./scripts/web-server.sh
then
$make test-cov
and then visit the html coverage report at http://localhost:4000/coverage.html
note the node-jscoverage instrumented version of mocha test in browser is at http://localhost:4000/test/client/cov
json2htmlcov is used to render the output of
mocha-phantomjs -R json-cov http://localhost:4000/test/client/cov
url http://localhost:4000/test/e2e/runner.html
$./scripts/e2e-test.sh