mocha.opts

This commit is contained in:
Tj Holowaychuk 2011-12-20 17:37:06 -08:00
parent 85ea5f67f4
commit dd7af29103
3 changed files with 9 additions and 9 deletions

2
.gitignore vendored
View File

@ -12,3 +12,5 @@ benchmarks/graphs
testing
node_modules/
testing
.coverage_data
cover_html

View File

@ -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"

3
test/mocha.opts Normal file
View File

@ -0,0 +1,3 @@
--require should
--slow 20
--growl