Makefile for mocha testing

This commit is contained in:
Anatoliy Chakkaev 2013-03-25 01:22:23 +04:00
parent 3b7a4dea24
commit 13e046ed09
1 changed files with 11 additions and 5 deletions

View File

@ -1,11 +1,17 @@
# doc:
# makedoc lib/abstract-class.js lib/schema.js lib/validatable.js -t "JugglingDB API docs"
## TESTS
TESTER = ./node_modules/.bin/mocha
OPTS = --require ./test/init.js
TESTS = test/*.test.js
test:
@./node_modules/.bin/mocha --require should test/*.test.js
$(TESTER) $(OPTS) $(TESTS)
test-verbose:
@./node_modules/.bin/mocha --require should --reporter spec test/*.test.js
$(TESTER) $(OPTS) --reporter spec $(TESTS)
testing:
$(TESTER) $(OPTS) --watch $(TESTS)
## DOCS
MAN_DOCS = $(shell find docs -name '*.md' \
|sed 's|.md|.3|g' \