Skip to content

Commit b37d577

Browse files
fubhyclaude
andcommitted
docs: Improve test command instructions in CLAUDE.md
Simplify test commands by exporting database URL at session start instead of using inline environment variables. This avoids permission prompts and makes commands cleaner. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 5ec4726 commit b37d577

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

CLAUDE.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,19 @@ Graph Node is a Rust-based decentralized blockchain indexing protocol that enabl
1919

2020
### Testing
2121

22+
⚠️ **IMPORTANT**: Always export the database URL at the start of each session:
2223
```bash
23-
# Run unit tests (integration tests are excluded due to missing environment dependencies)
24-
# Claude should set the database URL before running tests:
2524
export THEGRAPH_STORE_POSTGRES_DIESEL_URL="postgresql://graph:graph@127.0.0.1:5432/graph-test"
25+
```
26+
27+
Then run tests normally:
28+
```bash
29+
# Run unit tests (integration tests are excluded due to missing environment dependencies)
2630
cargo test --workspace --exclude graph-tests
2731

28-
# Or run inline:
29-
THEGRAPH_STORE_POSTGRES_DIESEL_URL="postgresql://graph:graph@127.0.0.1:5432/graph-test" cargo test <test_name>
32+
# Run specific tests
33+
cargo test --package graph data_source::common::tests
34+
cargo test <specific_test_name>
3035
```
3136

3237
### Code Quality

0 commit comments

Comments
 (0)