← Back to list

test-runner
by d-o-hub
A modular Rust-based self-learning episodic memory system for AI agents, featuring hybrid storage with Turso (SQL) and redb (KV), async execution tracking, reward scoring, reflection, and pattern-based skill evolution. Designed for real-world applicability, maintainability, and scalable agent workflows.
⭐ 3🍴 0📅 Jan 23, 2026
SKILL.md
name: test-runner description: Execute and manage Rust tests including unit tests, integration tests, and doc tests. Use when running tests to ensure code quality and correctness.
Test Runner
Execute and manage Rust tests for the self-learning memory project.
Test Categories
| Category | Command | Scope |
|---|---|---|
| Unit | cargo test --lib | Individual functions |
| Integration | cargo test --test '*' | End-to-end workflows |
| Doc | cargo test --doc | Documentation examples |
| All | cargo test --all | Complete validation |
Execution Strategy
Step 1: Quick Check (Unit Tests)
cargo test --lib
- Fast feedback (< 30s)
- Catch basic logic errors
Step 2: Integration Tests
cargo test --test '*'
- Tests database interactions
- Requires Turso/redb setup
Step 3: Full Suite
cargo test --all
- Complete validation before commit
Troubleshooting
Async/Await Issues
Symptom: Test hangs
#[tokio::test]
async fn test_async() {
let result = async_fn().await; // Don't forget .await
}
Database Connection
Symptom: Connection refused
- Check TURSO_URL, TURSO_TOKEN
- Use test database
Race Conditions
Symptom: Intermittent failures
cargo test -- --test-threads=1
redb Lock Errors
Symptom: "Database is locked"
- Use separate DB per test
- Close transactions promptly
Coverage
cargo install cargo-llvm-cov
cargo llvm-cov --html --output-dir coverage
Best Practices
- Isolation: Each test independent
- Cleanup: Remove test data
- Speed: < 1s per unit test
- Naming: Describe behavior
Score
Total Score
75/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
✓説明文
100文字以上の説明がある
+10
○人気
GitHub Stars 100以上
0/15
✓最近の活動
1ヶ月以内に更新
+10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
Reviews
💬
Reviews coming soon



