@@ -5,7 +5,7 @@ title: "Test Coverage Matrix"
55
66# Test Coverage Matrix
77
8- Correlates documented features with test coverage. The project includes 775 Python tests across 14 test files and 466 TypeScript tests across 13 test files, for a total of 1,241 tests.
8+ Correlates documented features with test coverage. The project includes 855 Python tests across 15 test files and 511 TypeScript tests across 13 test files, for a total of 1,366 tests.
99
1010---
1111
@@ -26,7 +26,8 @@ Correlates documented features with test coverage. The project includes 775 Pyth
2626| New Connectors (local providers, browser) | 93 | ` test_new_connectors.py ` | Covered |
2727| CDK Specialized + Mixins + Helpers | 97 | ` test_specialized.py ` | Covered |
2828| Local Provider Connectors | 28 | ` test_providers.py ` | Covered |
29- | ** Total** | ** 775** | ** 14 files** | |
29+ | Proxy Server + Docker Infrastructure | 80 | ` test_docker.py ` | Covered |
30+ | ** Total** | ** 855** | ** 15 files** | |
3031
3132### TypeScript Test Suite
3233
@@ -39,12 +40,12 @@ Correlates documented features with test coverage. The project includes 775 Pyth
3940| CapabilityPool | 15 | ` pool.test.ts ` | Covered |
4041| ModelMesh facade | 16 | ` mesh.test.ts ` | Covered |
4142| Router | 5 | ` router.test.ts ` | Covered |
42- | Pre-shipped Connectors + Cloud/Local Providers + RuntimeEnvironment + Registry + Runtime Guard | 185 | ` connectors.test.ts ` | Covered |
43+ | Pre-shipped Connectors + Cloud/Local Providers + RuntimeEnvironment + Registry + Runtime Guard + Docker Infrastructure | 230 | ` connectors.test.ts ` | Covered |
4344| MeshConfig + Auto-detect + LOCAL_PROVIDER_REGISTRY | 30 | ` config.test.ts ` | Covered |
4445| MeshClient (OpenAI compat) | 16 | ` client.test.ts ` | Covered |
4546| Secret Stores (env, dotenv, json, memory, encrypted, keyring) | 55 | ` secret-stores.test.ts ` | Covered |
4647| CORS Proxy | 12 | ` proxy.test.ts ` | Covered |
47- | ** Total** | ** 466 ** | ** 13 files** | |
48+ | ** Total** | ** 511 ** | ** 13 files** | |
4849
4950---
5051
@@ -235,6 +236,28 @@ Correlates documented features with test coverage. The project includes 775 Pyth
235236| HttpHealthDiscovery | ` BaseClasses.md ` | -- | Requires HTTP mock; coverage gap |
236237| CDK test helpers | ` Helpers.md ` | ` TestConnectorTestHarness ` , ` TestMockHttpClient ` (in ` test_specialized.py ` ) | mockCompletionRequest, mockModelSnapshot, MockHttpClient, ConnectorTestHarness |
237238
239+ ### 15. Proxy Server & Docker Deployment (` docs/guides/ProxyGuide.md ` )
240+
241+ | Feature | Doc Reference | Test(s) | Notes |
242+ | --- | --- | --- | --- |
243+ | Dockerfile structure | ` ProxyGuide.md ` | ` TestDockerfile ` (10 tests) | Base image, COPY, pip install, pyyaml, EXPOSE, ENTRYPOINT |
244+ | docker-compose.yaml | ` ProxyGuide.md ` | ` TestDockerCompose ` (7 tests) | Service, port mapping, env_file, config mount |
245+ | modelmesh.yaml config | ` ProxyGuide.md ` | ` TestModelMeshConfig ` (10 tests) | Sections, secret refs, no hardcoded keys |
246+ | .env.example template | ` ProxyGuide.md ` | ` TestEnvExample ` (5 tests) | Key presence, empty values |
247+ | .gitignore protects secrets | -- | ` TestGitignore ` (2 tests) | .env and .env.* ignored |
248+ | Automation scripts | ` ProxyGuide.md ` | ` TestScripts ` (15 tests) | Existence, content, shebang, strict mode |
249+ | Browser test page | ` ProxyGuide.md ` | ` TestBrowserTestPage ` (10 tests) | HTML validity, no deps, fetch API, streaming, SSE |
250+ | Proxy module structure | -- | ` TestProxyModuleStructure ` (7 tests) | Package, __ init__ , __ main__ , server, cli |
251+ | Proxy CLI argument parsing | -- | ` TestProxyCLI ` (2 tests) | Default and custom args |
252+ | Live proxy HTTP integration | ` ProxyGuide.md ` | ` TestProxyLiveHTTP ` (10 tests) | Health, models, chat, streaming, CORS, 400, 404, usage, status tracking |
253+ | ServerStatus dataclass | -- | ` TestServerStatus ` (3 tests in ` test_proxy.py ` ) | Defaults, custom values, asdict |
254+ | ProxyState status reporting | -- | ` TestProxyState ` (3 tests in ` test_proxy.py ` ) | Not running, running, counters |
255+ | Bearer token auth | -- | ` TestAuthTokenValidation ` (4 tests in ` test_proxy.py ` ) | No token, token configured, server stores token |
256+ | /v1/models response shape | -- | ` TestModelsEndpoint ` (2 tests in ` test_proxy.py ` ) | Pool IDs as models, OpenAI list format |
257+ | Request parsing | -- | ` TestRequestParsing ` (4 tests in ` test_proxy.py ` ) | Chat completion, streaming, tools, defaults |
258+ | Response serialization | -- | ` TestCompletionResponseSerialization ` (5 tests in ` test_proxy.py ` ) | Basic, streaming chunk, UUID gen, JSON serializable, tool calls |
259+ | ProxyServer initialization | -- | ` TestProxyServerInit ` (5 tests in ` test_proxy.py ` ) | MeshConfig, dict, invalid type, status, mesh property |
260+
238261---
239262
240263## Coverage Gaps
@@ -277,3 +300,4 @@ Correlates documented features with test coverage. The project includes 775 Pyth
277300| ` interfaces/Discovery.md ` | Discovery ABC | * (no dedicated tests)* | Gap |
278301| ` guides/BrowserUsage.md ` | BrowserBaseProvider, CORS proxy, createBrowser() | Browser provider tests | Direct |
279302| ` ConnectorInterfaces.md ` (Audio) | AudioRequest, AudioResponse, audio namespace | Audio interface tests | Direct |
303+ | ` guides/ProxyGuide.md ` | Proxy server, Docker, CLI, REST API, browser access | ` test_docker.py ` (80 tests) + ` test_proxy.py ` (26 tests) + ` connectors.test.ts ` Docker section | Direct |
0 commit comments