llama-stack-mirror/tests/integration/fixtures
ehhuang 6060353016 feat: Add one-step integration testing with server auto-start
Add support for server:<config> format in --stack-config option to enable
seamless one-step integration testing. This eliminates the need to manually
start servers in separate terminals before running tests.

Features:
- Auto-start llama stack server if target port is available
- Reuse existing server if port is already in use
- Health check polling with 2-minute timeout
- Custom port support via server:<config>:<port>
- Clean test output with background server execution
- Backward compatibility with all existing formats

Examples:
  pytest tests/integration/inference/ --stack-config=server:fireworks
  pytest tests/integration/safety/ --stack-config=server:together:8322

Test Plan:
- Verified server auto-start with available ports
- Verified server reuse with occupied ports
- Verified health check polling via /v1/health endpoint
- Tested custom port configuration
- Confirmed backward compatibility with existing config formats
2025-07-01 12:18:50 -07:00
..
__init__.py refactor(test): introduce --stack-config and simplify options (#1404) 2025-03-05 17:02:02 -08:00
common.py feat: Add one-step integration testing with server auto-start 2025-07-01 12:18:50 -07:00