26 lines
665 B
Markdown
26 lines
665 B
Markdown
# Testing
|
|
|
|
Auto Clip is audio-heavy, so tests are split into:
|
|
- **Sanity / unit tests** (fast, no audio required)
|
|
- Optional **integration tests** (needs real audio files; not included by default)
|
|
|
|
## Install dev deps
|
|
```bash
|
|
pip install -U pytest
|
|
```
|
|
|
|
## Run tests
|
|
From repo root:
|
|
```bash
|
|
pytest -q
|
|
```
|
|
|
|
## What the sanity tests validate
|
|
- ffmpeg is available in PATH (or the test is skipped with a clear message)
|
|
- CLI argument parsing doesn't crash
|
|
- selection parsing is correct (ranges, lists)
|
|
- report JSON schema expectations (keys exist)
|
|
- basic utilities remain importable
|
|
|
|
These tests are designed to catch “oops I broke the CLI” regressions quickly.
|