feat: add test automation and backend startup scripts
This commit is contained in:
28
SETUP.md
28
SETUP.md
@@ -168,6 +168,34 @@ Backend en vivo: `https://your-railway-project.up.railway.app`
|
||||
|
||||
---
|
||||
|
||||
## 6. Test Automatizado
|
||||
|
||||
### Terminal 1: Correr backend
|
||||
```bash
|
||||
bash run_backend.sh
|
||||
```
|
||||
|
||||
Esperar a:
|
||||
```
|
||||
Uvicorn running on http://127.0.0.1:8000
|
||||
```
|
||||
|
||||
### Terminal 2: Correr test
|
||||
```bash
|
||||
bash test_demo.sh
|
||||
```
|
||||
|
||||
**Output esperado:**
|
||||
```
|
||||
✓ Register OK
|
||||
✓ Create Address OK
|
||||
✓ Get ETA OK
|
||||
✓ Guide OK
|
||||
=== ALL TESTS PASSED ===
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
| Problema | Solución |
|
||||
|
||||
Reference in New Issue
Block a user