Skip to content

Commit 259c436

Browse files
committed
fix: Improve integration test server health checks
- Add wait_for_server_healthy() with exponential backoff - Replace sleep-based waiting with proper HTTP health checks - Add better error capture when server fails to start - Document uv requirement for Python environments in AGENTS.md - Add integration test status report
1 parent 97622c7 commit 259c436

3 files changed

Lines changed: 550 additions & 76 deletions

File tree

AGENTS.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,13 +592,27 @@ cd build/release && ctest -V -R pattern # Run specific test
592592

593593
**Framework:** pytest + Tavern (`test/integration/`)
594594

595+
**Python Environment:** Always use `uv` for Python virtual environments:
596+
```bash
597+
cd test/integration
598+
uv venv # Create virtual environment
599+
uv pip install -e . # Install dependencies from pyproject.toml
600+
source .venv/bin/activate # Activate environment
601+
```
602+
595603
**Test types:**
596604
- `*.tavern.yaml`: REST API tests using Tavern specification
597605
- `*.py`: Custom Python tests (MCP, async, complex scenarios)
598606

599607
**Running tests:**
600608
```bash
601-
make integration-test-setup # Install dependencies
609+
# Manual test runs (after uv environment setup)
610+
cd test/integration
611+
source .venv/bin/activate
612+
pytest test_customers.tavern.yaml -v # Single test file
613+
pytest test_mcp_integration.py::test_name -v # Single test function
614+
615+
# Or use make targets (handles environment automatically)
602616
make integration-test-rest # Tavern tests
603617
make integration-test-mcp # MCP protocol tests
604618
make integration-test-ci # Full suite with server management

0 commit comments

Comments
 (0)