Skip to content

Commit

Permalink
Updated to mocha
Browse files Browse the repository at this point in the history
  • Loading branch information
3rd-Eden committed Nov 26, 2011
1 parent f37adee commit 071aa4b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
21 changes: 8 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
ALL_TESTS = $(shell find tests/ -name '*.test.js')

run-tests:
@./node_modules/.bin/expresso \
-t 4000 \
-I support \
-I lib \
--serial \
$(TESTFLAGS) \
$(TESTS)
REPORTER = spec
UI = exports

test:
@$(MAKE) TESTS="$(ALL_TESTS)" run-tests

test-cov:
@TESTFLAGS=--cov $(MAKE) test
@./node_modules/.bin/mocha \
--require should \
--reporter $(REPORTER) \
--ui $(UI) \
--growl \
$(ALL_TESTS)

.PHONY: test
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
, "url": "https://github.com/observing/gatekeeper.git"
}
, "devDependencies": {
"expresso": "0.9.2"
"mocha": "*"
, "should": "0.3.2"
}
, "scripts": {
"test": "make test"
Expand Down

0 comments on commit 071aa4b

Please sign in to comment.