Makefile for mocha testing
This commit is contained in:
parent
3b7a4dea24
commit
13e046ed09
16
Makefile
16
Makefile
|
@ -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' \
|
||||||
|
|
Loading…
Reference in New Issue