Support "make test" without Mocha installed globally

Since it is already bundled as a dev-dependency, we can just use the bundled version
This commit is contained in:
Nicholas Sherlock 2021-06-05 16:16:08 +12:00
parent b7700fd5fa
commit 6ed55fd9b3
2 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ node_js:
- "0.8"
before_install:
- "npm install -g npm@4.3.0"
- "npm install -g mocha@2.x voc"
- "npm install -g voc"
- "npm install codepage"
- "npm install blanket"
- "npm install coveralls mocha-lcov-reporter"

View File

@ -34,7 +34,7 @@ clean: clean-baseline ## Remove targets and build artifacts
.PHONY: test mocha
test mocha: test.js $(TARGET) baseline ## Run test suite
mocha -R spec -t 60000
./node_modules/.bin/mocha -R spec -t 60000
.PHONY: ctest
ctest: ## Build browser test (into ctest/ subdirectory)
@ -88,11 +88,11 @@ flow: lint ## Run flow checker
cov: misc/coverage.html ## Run coverage test
misc/coverage.html: $(TARGET) test.js
mocha --require blanket -R html-cov -t 30000 > $@
./node_modules/.bin/mocha --require blanket -R html-cov -t 30000 > $@
.PHONY: coveralls
coveralls: ## Coverage Test + Send to coveralls.io
mocha --require blanket --reporter mocha-lcov-reporter -t 20000 | node ./node_modules/coveralls/bin/coveralls.js
./node_modules/.bin/mocha --require blanket --reporter mocha-lcov-reporter -t 20000 | node ./node_modules/coveralls/bin/coveralls.js
MDLINT=README.md
.PHONY: mdlint