joola.io.engine
Version:
joola.io's Framework Engine
21 lines (16 loc) • 580 B
Plain Text
REPORTER=spec
test:
$(MAKE) lint
echo TRAVIS_JOB_ID $(TRAVIS_JOB_ID)
@NODE_ENV=test ./node_modules/.bin/mocha -b --require blanket --reporter $(REPORTER)
lint:
./node_modules/.bin/jshint ./joola.io.engine.js
test-cov:
$(MAKE) test REPORTER=spec
$(MAKE) test REPORTER=html-cov 1> coverage.html
test-coveralls:
cp ./node_modules/mocha-lcov-reporter/lib/lcov.js ./node_modules/mocha/lib/reporters/mocha-lcov-reporter.js
$(MAKE) test REPORTER=spec
$(MAKE) test REPORTER=mocha-lcov-reporter | ./node_modules/.bin/coveralls --verbose
rm -rf lib-cov
.PHONY: test