llama-stack-mirror/tests
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
..
client-sdk/post_training feat: Add nemo customizer (#1448) 2025-03-25 11:01:10 -07:00
common feat(responses): implement full multi-turn support (#2295) 2025-06-02 15:35:49 -07:00
external-provider/llama-stack-provider-ollama refactor(env)!: enhanced environment variable substitution (#2490) 2025-06-26 08:20:08 +05:30
integration feat: Add one-step integration testing with server auto-start 2025-07-01 12:18:50 -07:00
unit fix: allow default empty vars for conditionals (#2570) 2025-07-01 14:42:05 +02:00
verifications fix(ollama): Download remote image URLs for Ollama (#2551) 2025-06-30 20:36:11 +05:30
__init__.py refactor(test): introduce --stack-config and simplify options (#1404) 2025-03-05 17:02:02 -08:00
Containerfile ci: use ollama container image with loaded models (#2410) 2025-06-06 12:08:20 +02:00
README.md docs: revamp testing documentation (#2155) 2025-05-13 11:28:29 -07:00

Llama Stack Tests

Llama Stack has multiple layers of testing done to ensure continuous functionality and prevent regressions to the codebase.

Testing Type Details
Unit unit/README.md
Integration integration/README.md
Verification verifications/README.md