pipe to tap-spec in Makefile

This commit is contained in:
Mike Morris
2015-02-18 17:18:30 -05:00
parent 7bb6651bf5
commit ebbb6c9875
2 changed files with 3 additions and 3 deletions

View File

@@ -50,11 +50,11 @@ $(MBGL)/config/%.gypi: $(MBGL) $(MBGL)/configure
.PHONY: test-suite
test-suite: build
-@`npm bin`/tape test/render.test.js
-@(`npm bin`/tape test/render.test.js | `npm bin`/tap-spec)
.PHONY: test-js
test-js: build
@`npm bin`/tape test/js/**/*.test.js
@(`npm bin`/tape test/js/**/*.test.js | `npm bin`/tap-spec)
.PHONY: test
test: test-js test-suite

View File

@@ -32,7 +32,7 @@
},
"scripts": {
"install": "node-pre-gyp install || make",
"test": "make test | tap-spec",
"test": "make test",
"rebuild": "make clean && make"
},
"gypfile": true,