810 B
810 B
name, description, version, trigger
| name | description | version | trigger | ||||
|---|---|---|---|---|---|---|---|
| Run Tests on Save | Run relevant tests when service or frontend files are saved | 2.0 |
|
When a file is saved:
-
If it's a Python file under
services/:- Identify the service module (e.g.
services/ingestion/worker.py→ingestion) - Look for corresponding tests in
tests/matching the service name - Run
python -m pytest tests/test_{service_name}*.py -x --tb=short -qif test files exist - If no specific test file exists, run lint check only
- Report results concisely
- Identify the service module (e.g.
-
If it's a TypeScript/React file under
frontend/src/:- Run
npx vitest --runfrom thefrontend/directory - Report results concisely — only show failures or a one-line success
- Run