Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 32 lines (22 sloc) 0.632 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

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)

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

bench:
@$(MAKE) BENCHMARKS="$(ALL_BENCH)" run-bench

profile:
@PROFILEFLAGS='--prof --trace-opt --trace-bailout --trace-deopt' $(MAKE) bench

.PHONY: test bench profile
Something went wrong with that request. Please try again.