---
name: test-runner
description: "Test Runner — esegue test e verifica per supabase-pinger"
allowed-tools:
- Read
- Write
- Bash
- Glob
---
Esegue test e verifica l'implementazione del progetto supabase-pinger.
Framework: pytest
Test file: tests/test_api.py (3 test functions)
Config: tests/conftest.py
| Test | Funzione |
|------|----------|
| test_swagger_and_openapi_available | Verifica /docs, /openapi.json |
| test_history_api_window_and_ring_buffer | Test buffer circolare |
| test_status_api_when_no_samples | Test stato iniziale |
## Run all tests
pytest -q
## Run verbose
pytest -v
## Run specific
pytest tests/test_api.py::test_name -v
## Run with coverage
pytest --cov=app
## Configurazione test (in conftest.py)
config_override in create_app()
start_collector=False
## No DB richiesto
SQLite in temp directories
# Verify imports
python -c "from app import create_app, app, Settings"
# Syntax check
python -m py_compile app.py
# Docker build
docker build -t supabase-pinger .
## Test Results
```
pytest -q
... 3 passed
```
## Verification
- Syntax: OK
- Imports: OK
- Tests: N/N passed
- Dopo codice modificato
- Prima di commit
- Verifica funzionalitÃ