Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 41 lines (34 sloc) 1.061 kb
44b7d85 @nateps Convert tests to Mocha
nateps authored
1 compile:
60df547 @nateps fix racer make command to create dev directory and run macro compilation...
nateps authored
2 @mkdir -p 'dev'
b8c37ef @bnoguchi Copy js files from src/ to lib/ on `make compile` and scripts/prepublish
bnoguchi authored
3 @make compile-macro & make compile-coffee & ./scripts/watch-src-js && fg
60df547 @nateps fix racer make command to create dev directory and run macro compilation...
nateps authored
4 compile-coffee:
29aca26 @bnoguchi Do macro and coffee compilation via prepublish script
bnoguchi authored
5 ./node_modules/coffee-script/bin/coffee -bw -o ./lib -c ./src ./dev
44b7d85 @nateps Convert tests to Mocha
nateps authored
6 compile-examples:
7 ./node_modules/coffee-script/bin/coffee -bcw ./examples/*/*.coffee
60df547 @nateps fix racer make command to create dev directory and run macro compilation...
nateps authored
8 compile-macro:
1ecf6fe @bnoguchi Keep only non-derived files in the git repo. Derive others during npm in...
bnoguchi authored
9 ./scripts/watch-macro
44b7d85 @nateps Convert tests to Mocha
nateps authored
10
3fa9e44 @nateps add make test-all; improve pubsub adapter tests
nateps authored
11 ROOT := $(shell pwd)
44b7d85 @nateps Convert tests to Mocha
nateps authored
12 MOCHA_TESTS := $(shell find test/ -name '*.mocha.coffee')
c16812a @nateps major refactor to modularize into plugins
nateps authored
13 MOCHA := ./node_modules/mocha/bin/mocha
44b7d85 @nateps Convert tests to Mocha
nateps authored
14 OUT_FILE = "test-output.tmp"
9ac77b0 @bnoguchi Added make test-mocha
bnoguchi authored
15
44b7d85 @nateps Convert tests to Mocha
nateps authored
16 g = "."
9ac77b0 @bnoguchi Added make test-mocha
bnoguchi authored
17
18 test-mocha:
19 @NODE_ENV=test $(MOCHA) \
44b7d85 @nateps Convert tests to Mocha
nateps authored
20 --grep "$(g)" \
21 $(MOCHA_TESTS) | tee $(OUT_FILE)
d562c96 @bnoguchi Added Makefile to run tests.
bnoguchi authored
22
3fa9e44 @nateps add make test-all; improve pubsub adapter tests
nateps authored
23 test-external:
24 cd $(ROOT)/node_modules/racer-journal-redis/; make test
25 cd $(ROOT)/node_modules/racer-pubsub-redis/; make test
26 cd $(ROOT)/node_modules/racer-db-mongo/; make test
27 cd $(ROOT)
28
44b7d85 @nateps Convert tests to Mocha
nateps authored
29 test-fast:
126e2c7 @nateps Redo lookup to use a getter function instead of having ref lookup code i...
nateps authored
30 @NODE_ENV=test $(MOCHA) \
44b7d85 @nateps Convert tests to Mocha
nateps authored
31 --colors \
126e2c7 @nateps Redo lookup to use a getter function instead of having ref lookup code i...
nateps authored
32 --reporter spec \
3fa9e44 @nateps add make test-all; improve pubsub adapter tests
nateps authored
33 --timeout 500 \
44b7d85 @nateps Convert tests to Mocha
nateps authored
34 --grep "^(?:(?!@slow).)*$$" \
35 $(MOCHA_TESTS) | tee $(OUT_FILE)
8a3029b @nateps Models now request any missed transactions when they connect to the sock...
nateps authored
36
44b7d85 @nateps Convert tests to Mocha
nateps authored
37 test: test-mocha
3fa9e44 @nateps add make test-all; improve pubsub adapter tests
nateps authored
38 test-all: test-mocha test-external
44b7d85 @nateps Convert tests to Mocha
nateps authored
39 test!:
d6f4994 @nateps Throw an error if a ref is created on a public path and update tests to ...
nateps authored
40 @perl -n -e '/\[31m 0\) (.*?).\[0m/ && print "make test g=\"$$1\$$\""' $(OUT_FILE) | sh
Something went wrong with that request. Please try again.