more recordings, docs

This commit is contained in:
Ashwin Bharambe 2025-10-04 10:57:22 -07:00
parent aa9862f905
commit ca70b6c0c4
114 changed files with 38794 additions and 10 deletions

View file

@ -31,18 +31,24 @@ These normalizations ensure that re-recording tests produces minimal git diffs,
## Usage
### Recording mode
Set `LLAMA_STACK_TEST_INFERENCE_MODE=record` to capture new responses:
```bash
LLAMA_STACK_TEST_INFERENCE_MODE=record pytest tests/integration/
```
### Replay mode (default)
Responses are replayed from recordings:
```bash
LLAMA_STACK_TEST_INFERENCE_MODE=replay pytest tests/integration/
```
### Record-if-missing mode (recommended for adding new tests)
Records only when no recording exists, otherwise replays. Use this for iterative development:
```bash
LLAMA_STACK_TEST_INFERENCE_MODE=record-if-missing pytest tests/integration/
```
### Recording mode
**Force-records all API interactions**, overwriting existing recordings. Use with caution:
```bash
LLAMA_STACK_TEST_INFERENCE_MODE=record pytest tests/integration/
```
### Live mode
Skip recordings entirely and use live APIs:
```bash