Skip to content

Commit 8a5d43f

Browse files
committed
Minor test tweaks to the justfile.
1 parent 16c6272 commit 8a5d43f

2 files changed

Lines changed: 115 additions & 175 deletions

File tree

.justfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,22 @@ _help:
55

66
# Run all tests using nextest.
77
test:
8+
#!/usr/bin/env bash
9+
if ! psql -lqtA | grep -q "^backfill_test|" ; then
10+
createdb backfill_test
11+
fi
12+
export DATABASE_URL="postgresql://localhost:5432/backfill_test"
813
cargo nextest run -F axum
914

15+
# Run the named tests using nextest.
16+
test-one ARG:
17+
#!/usr/bin/env bash
18+
if ! psql -lqtA | grep -q "^backfill_test|" ; then
19+
createdb backfill_test
20+
fi
21+
export DATABASE_URL="postgresql://localhost:5432/backfill_test"
22+
cargo nextest run -F axum {{ARG}}
23+
1024
# get a testing coverage report
1125
coverage:
1226
cargo llvm-cov --all-targets --workspace --summary-only

0 commit comments

Comments
 (0)