Install
$ agentstack add skill-d-o-hub-rust-self-learning-memory-test-runner ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
About
Test Runner
Execute and manage Rust tests for the self-learning memory project.
Commands
# Unit tests (fast, __`
- **Speed**: <1s per unit test
## Async Testing
```rust
#[tokio::test]
async fn test_episode() { let result = async_fn().await; }
#[tokio::test(start_paused = true)]
async fn test_timeout() { /* paused clock */ }
#[tokio::test(flavor = "multi_thread", worker_threads = 4)]
async fn test_concurrent() { /* parallel ops */ }
| Bad | Good | |-----|------| | std::thread::sleep() | tokio::time::sleep().await | | Missing .await | Always await async |
Troubleshooting
| Issue | Fix | |-------|-----| | Race conditions | cargo test -- --test-threads=1 | | redb lock errors | Separate DB per test | | DB connection refused | Check TURSOURL/TURSOTOKEN |
Coverage
cargo llvm-cov --html --output-dir coverage
References
- ADR-033: Modern Testing Strategy
Related skills: test-patterns for test design, test-optimization for performance-focused test work, and test-fix for failing-suite diagnosis.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: d-o-hub
- Source: d-o-hub/rust-self-learning-memory
- License: MIT
- Homepage: https://d-o-hub.github.io/rust-self-learning-memory/
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.