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: ## TESTS
# makedoc lib/abstract-class.js lib/schema.js lib/validatable.js -t "JugglingDB API docs"
TESTER = ./node_modules/.bin/mocha
OPTS = --require ./test/init.js
TESTS = test/*.test.js
test: test:
@./node_modules/.bin/mocha --require should test/*.test.js $(TESTER) $(OPTS) $(TESTS)
test-verbose: 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' \ MAN_DOCS = $(shell find docs -name '*.md' \
|sed 's|.md|.3|g' \ |sed 's|.md|.3|g' \