feat(tests): allow cleanup of stray artifacts for local integration test runs

This commit is contained in:
Emilio Garcia 2025-10-09 10:40:42 -04:00
parent 05a62a6ffb
commit a0e6c8d383
3 changed files with 65 additions and 2 deletions

View file

@ -40,6 +40,16 @@ Model parameters can be influenced by the following options:
Each of these are comma-separated lists and can be used to generate multiple parameter combinations. Note that tests will be skipped
if no model is specified.
### Database Cleanup
Tests create persistent databases and files in `~/.llama/distributions/{distro_name}/`. Use when running locally, you can use the `--clean-artifacts` flag to remove once a test finishes executing.
```bash
pytest tests/integration/ --stack-config=server:starter --clean-artifacts
```
Artifacts cleaned: `*.db`, `*.log`, and batch files in `files/` directory.
### Suites and Setups
- `--suite`: single named suite that narrows which tests are collected.