Browse files

mocha.opts

  • Loading branch information...
1 parent 85ea5f6 commit dd7af291032b5cb65a6c34992290e6924a2c12e9 @tj tj committed Dec 20, 2011
Showing with 9 additions and 9 deletions.
  1. +2 −0 .gitignore
  2. +4 −9 Makefile
  3. +3 −0 test/mocha.opts
View
2 .gitignore
@@ -12,3 +12,5 @@ benchmarks/graphs
testing
node_modules/
testing
+.coverage_data
+cover_html
View
13 Makefile
@@ -1,21 +1,16 @@
DOCS = docs/*.md
HTMLDOCS = $(DOCS:.md=.html)
-TESTS = test/*.js
REPORTER = dot
test:
@NODE_ENV=test ./node_modules/.bin/mocha \
- --require should \
- --reporter $(REPORTER) \
- --slow 20 \
- --growl \
- $(TESTS)
+ --reporter $(REPORTER)
test-acceptance:
- @$(MAKE) test \
- TESTS=test/acceptance/*.js \
- REPORTER=spec
+ @NODE_ENV=test ./node_modules/.bin/mocha \
+ --reporter spec \
+ test/acceptance/*.js
docs: $(HTMLDOCS)
@ echo "... generating TOC"
View
3 test/mocha.opts
@@ -0,0 +1,3 @@
+--require should
+--slow 20
+--growl

0 comments on commit dd7af29

Please sign in to comment.