@@ -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
1111help :
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
1415test : test-unit
1516
@@ -25,20 +26,27 @@ test-unit:
2526 @find test/unit -name " *-tests.js" | $(node-command )
2627
2728test-connection :
29+ @echo " ***Testing connection***"
2830 @node script/test-connection.js $(params )
2931
3032test-connection-binary :
33+ @echo " ***Testing binary connection***"
3134 @node script/test-connection.js $(params ) binary
3235
3336test-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
4245test-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