Permalink
Browse files

Refactored Makefile.

  • Loading branch information...
1 parent 300ee10 commit bf114ddf2ea1c7e0f0d85afabe42cdf237adcf6a @rauchg rauchg committed Feb 26, 2012
Showing with 12 additions and 25 deletions.
  1. +12 −25 Makefile
View
@@ -1,31 +1,18 @@
-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)
+TESTS = test/*.js
+BENCHMARKS = $(shell find bench -type f ! -name 'runner.js')
+REPORTER = dot
test:
- @$(MAKE) NODE_PATH=lib TESTS="$(ALL_TESTS)" run-tests
-
-test-cov:
- @TESTFLAGS=--cov $(MAKE) test
-
-test-leaks:
- @ls test/leaks/* | xargs node --expose_debug_as=debug --expose_gc
-
-run-bench:
- @node $(PROFILEFLAGS) benchmarks/runner.js
+ @./node_modules/.bin/mocha \
+ --require test/common \
+ --reporter $(REPORTER) \
+ --slow 500ms \
+ --bail \
+ --growl \
+ $(TESTS)
bench:
- @$(MAKE) BENCHMARKS="$(ALL_BENCH)" run-bench
-
-profile:
- @PROFILEFLAGS='--prof --trace-opt --trace-bailout --trace-deopt' $(MAKE) bench
+ @node $(PROFILEFLAGS) bench/runner.js $(BENCHMARKS)
-.PHONY: test bench profile
+.PHONY: test bench

0 comments on commit bf114dd

Please sign in to comment.