Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 24 lines (17 sloc) 0.444 kb
3bbf02b Guillermo Rauch Initial import
rauchg authored
1
2 TESTS = test/*.js
3 BENCHMARKS = $(shell find bench -type f ! -name 'runner.js')
4 REPORTER = dot
5
6 test:
7 @./node_modules/.bin/mocha \
8 --reporter $(REPORTER) \
b2c249e Guillermo Rauch Slown down some tests since they were pretty extreme.
rauchg authored
9 --slow 500ms \
c0bb8c7 Guillermo Rauch Started leveraging mocha `bail`.
rauchg authored
10 --bail \
17e3e52 Janne Laukkanen added tests for JSONP transport and a --globals flag in Makefile
jphire authored
11 --globals ___eio,document \
3bbf02b Guillermo Rauch Initial import
rauchg authored
12 $(TESTS)
13
67cb168 Guillermo Rauch Added `test-cov`, `lib-cov` Makefile tasks.
rauchg authored
14 test-cov: lib-cov
2aaee23 Guillermo Rauch Fixed coverage generation.
rauchg authored
15 EIO_COV=1 $(MAKE) test REPORTER=html-cov > coverage.html
67cb168 Guillermo Rauch Added `test-cov`, `lib-cov` Makefile tasks.
rauchg authored
16
17 lib-cov:
2aaee23 Guillermo Rauch Fixed coverage generation.
rauchg authored
18 jscoverage --no-highlight lib lib-cov
67cb168 Guillermo Rauch Added `test-cov`, `lib-cov` Makefile tasks.
rauchg authored
19
3bbf02b Guillermo Rauch Initial import
rauchg authored
20 bench:
21 @node $(PROFILEFLAGS) bench/runner.js $(BENCHMARKS)
22
67cb168 Guillermo Rauch Added `test-cov`, `lib-cov` Makefile tasks.
rauchg authored
23 .PHONY: test test-cov bench
Something went wrong with that request. Please try again.