mirror of
https://github.com/trailofbits/buttercup
synced 2026-06-21 14:11:39 +00:00
docs: add Redis testing guidance to CLAUDE.md (#472)
Many component test suites require a running Redis instance. Document how to start a temporary Redis container via Docker so these tests are not skipped or left failing. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -129,6 +129,12 @@ cd <component> && uv lock --upgrade
|
||||
- Mock external dependencies (Redis, LLM APIs, file system)
|
||||
- Integration tests use Docker containers
|
||||
- Test data stored in `<component>/tests/data/`
|
||||
- **Redis-dependent tests**: Several components (common, orchestrator, patcher, fuzzer, seed-gen) have tests that require a running Redis instance. Do not skip these tests. Start a temporary Redis container before running tests:
|
||||
```bash
|
||||
docker run -d --name redis-temp -p 6379:6379 redis:latest
|
||||
# Run tests...
|
||||
docker stop redis-temp && docker rm redis-temp
|
||||
```
|
||||
|
||||
### Code Quality
|
||||
|
||||
|
||||
Reference in New Issue
Block a user