Skip to content

Commit d55cae5

Browse files
committed
Merge pull request brianc#243 from CartoDB/master-make
Add prepare-test-db rule and advertise it
2 parents 9286a66 + 4856385 commit d55cae5

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Makefile

+10-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ node-command := xargs -n 1 -I file node file $(params)
99
.PHONY : test test-connection test-integration bench test-native build/default/binding.node
1010

1111
help:
12-
echo "make test-all connectionString=pg://<your connection string>"
12+
@echo "make prepare-test-db [connectionString=pg://<your connection string>]"
13+
@echo "make test-all [connectionString=pg://<your connection string>]"
1314

1415
test: test-unit
1516

@@ -25,20 +26,27 @@ test-unit:
2526
@find test/unit -name "*-tests.js" | $(node-command)
2627

2728
test-connection:
29+
@echo "***Testing connection***"
2830
@node script/test-connection.js $(params)
2931

3032
test-connection-binary:
33+
@echo "***Testing binary connection***"
3134
@node script/test-connection.js $(params) binary
3235

3336
test-native: build/default/binding.node
3437
@echo "***Testing native bindings***"
3538
@find test/native -name "*-tests.js" | $(node-command)
3639
@find test/integration -name "*-tests.js" | $(node-command) native
3740

38-
test-integration: test-connection
41+
test-integration: test-connection
3942
@echo "***Testing Pure Javascript***"
4043
@find test/integration -name "*-tests.js" | $(node-command)
4144

4245
test-binary: test-connection-binary
4346
@echo "***Testing Pure Javascript (binary)***"
4447
@find test/integration -name "*-tests.js" | $(node-command) binary
48+
49+
prepare-test-db:
50+
@echo "***Preparing the database for tests***"
51+
@find script/create-test-tables.js | $(node-command)
52+

0 commit comments

Comments
 (0)