Mercurial > hg > nodescore
diff node_modules/socket.io/Makefile @ 76:0ae87af84e2f
added oscgroups
author | Rob Canning <rob@foo.net> |
---|---|
date | Sun, 13 Jul 2014 10:07:41 +0100 |
parents | 333afcfd3f3a |
children |
line wrap: on
line diff
--- a/node_modules/socket.io/Makefile Tue Jul 01 08:51:53 2014 +0000 +++ b/node_modules/socket.io/Makefile Sun Jul 13 10:07:41 2014 +0100 @@ -1,31 +1,15 @@ -ALL_TESTS = $(shell find test/ -name '*.test.js') -ALL_BENCH = $(shell find benchmarks -name '*.bench.js') - -run-tests: - @./node_modules/.bin/expresso \ - -t 3000 \ - -I support \ - --serial \ - $(TESTFLAGS) \ - $(TESTS) +REPORTER = dot test: - @$(MAKE) NODE_PATH=lib TESTS="$(ALL_TESTS)" run-tests + @./node_modules/.bin/mocha \ + --reporter $(REPORTER) \ + --slow 200ms \ + --bail test-cov: - @TESTFLAGS=--cov $(MAKE) test + @./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- \ + --reporter $(REPORTER) \ + test/ -test-leaks: - @ls test/leaks/* | xargs node --expose_debug_as=debug --expose_gc - -run-bench: - @node $(PROFILEFLAGS) benchmarks/runner.js - -bench: - @$(MAKE) BENCHMARKS="$(ALL_BENCH)" run-bench - -profile: - @PROFILEFLAGS='--prof --trace-opt --trace-bailout --trace-deopt' $(MAKE) bench - -.PHONY: test bench profile +.PHONY: test