Skip to content
Newer
Older
100644 36 lines (29 sloc) 819 Bytes
3f4e9fa splitting tests into unit and integration modules
Ryan Fitzgerald authored
1 REPORTER = spec
2 ui = bdd
eb3f373 updating makefile with better version support and using find to find …
Ryan Fitzgerald authored
3 VERSION := $(shell cat package.json | grep version | grep -o -E '[0-9]+\.[0-9]+\.[0-9]+')
4 UNITTESTFILES := $(shell find test/unit -name '*-test.js')
5 INTEGRATIONTESTFILES := $(shell find test/integration -name '*-test.js')
3f4e9fa splitting tests into unit and integration modules
Ryan Fitzgerald authored
6
7 test: test-unit
8
9 test-all: test-unit test-integration
10
11 test-unit:
fa59c36 implemented create table api
Ryan Fitzgerald authored
12 @./node_modules/.bin/mocha \
3f4e9fa splitting tests into unit and integration modules
Ryan Fitzgerald authored
13 --ui $(ui) \
14 --reporter $(REPORTER) \
eb3f373 updating makefile with better version support and using find to find …
Ryan Fitzgerald authored
15 $(UNITTESTFILES)
3f4e9fa splitting tests into unit and integration modules
Ryan Fitzgerald authored
16
17 test-integration:
18 @./node_modules/.bin/mocha \
19 --ui $(ui) \
20 --reporter $(REPORTER) \
eb3f373 updating makefile with better version support and using find to find …
Ryan Fitzgerald authored
21 $(INTEGRATIONTESTFILES)
fa59c36 implemented create table api
Ryan Fitzgerald authored
22
23 test-spec:
24 @./node_modules/.bin/mocha \
25 --ui bdd \
26 --reporter spec \
27 --grep "$(grep)" \
eb3f373 updating makefile with better version support and using find to find …
Ryan Fitzgerald authored
28 $(UNITTESTFILES) $(INTEGRATIONTESTFILES)
fa59c36 implemented create table api
Ryan Fitzgerald authored
29
601725b adding release task to makefile
Ryan Fitzgerald authored
30 release:
31 git tag -a v$(VERSION) -m 'release version $(VERSION)'
32 git push
33 git push --tags
34 npm publish .
35
36 .PHONY: test test-all test-unit test-integration
Something went wrong with that request. Please try again.