File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change
1
+ DATABASE_TEST_VAR_NAME := " THEGRAPH_STORE_POSTGRES_DIESEL_URL"
2
+ DATABASE_URL := " postgresql://graph-node:let-me-in@localhost:5432/graph-node"
3
+
4
+
1
5
help :
2
6
@ just -l
3
7
@@ -13,8 +17,24 @@ test-deps-up *ARGS:
13
17
test-deps-down :
14
18
docker compose -f tests/ docker-compose.yml down
15
19
20
+ # Requires local-deps, see local-deps-up
21
+ test * ARGS :
22
+ just _run_in_bash cargo test --workspace --exclude graph-tests -- --nocapture {{ ARGS }}
23
+
24
+ runner-test * ARGS :
25
+ just _run_in_bash cargo test -p graph-tests --test runner_tests -- --nocapture {{ ARGS }}
26
+
27
+ # Requires test-deps to be running, see test-deps-up
28
+ it-test * ARGS :
29
+ just _run_in_bash cargo test --test integration_tests -- --nocapture {{ ARGS }}
30
+
16
31
local-rm-db :
17
32
rm -r docker/ data/ postgres
18
33
19
34
new-migration NAME :
20
35
diesel migration generate {{ NAME }} --migration-dir store/ postgres/ migrations/
36
+
37
+ _ run_in_bash * CMD :
38
+ #!/usr/bin/env bash
39
+ export {{ DATABASE_TEST_VAR_NAME }} ={{ DATABASE_URL }}
40
+ {{ CMD }}
You can’t perform that action at this time.
0 commit comments