@@ -9,7 +9,8 @@ node-command := xargs -n 1 -I file node file $(params)
9
9
.PHONY : test test-connection test-integration bench test-native build/default/binding.node
10
10
11
11
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>]"
13
14
14
15
test : test-unit
15
16
@@ -25,20 +26,27 @@ test-unit:
25
26
@find test/unit -name " *-tests.js" | $(node-command )
26
27
27
28
test-connection :
29
+ @echo " ***Testing connection***"
28
30
@node script/test-connection.js $(params )
29
31
30
32
test-connection-binary :
33
+ @echo " ***Testing binary connection***"
31
34
@node script/test-connection.js $(params ) binary
32
35
33
36
test-native : build/default/binding.node
34
37
@echo " ***Testing native bindings***"
35
38
@find test/native -name " *-tests.js" | $(node-command )
36
39
@find test/integration -name " *-tests.js" | $(node-command ) native
37
40
38
- test-integration : test-connection
41
+ test-integration : test-connection
39
42
@echo " ***Testing Pure Javascript***"
40
43
@find test/integration -name " *-tests.js" | $(node-command )
41
44
42
45
test-binary : test-connection-binary
43
46
@echo " ***Testing Pure Javascript (binary)***"
44
47
@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