Skip to content

Verification and Test Matrix ​

ContextCortex is verified by an extensive automated test suite comprising 923 automated tests:

  • 611 Backend Tests (Python Pytest suite with 88% code coverage baseline).
  • 266 Frontend Tests (React 19 / TypeScript Vitest unit and integration suite).
  • 46 End-to-End Tests (Playwright automated browser suite and Layout Inspector audits).

Requirements Verification Traceability Matrix ​

Requirement IDRequirement TitleVerification MethodAssociated Test Modules
FR-01AST Code ChunkingAutomated Unit Testtests/backend/test_chunking.py, test_tree_sitter.py
FR-02Hybrid Dense + Sparse SearchAutomated Integration Testtests/backend/test_search.py, test_rrf.py
FR-03Dual Relational StorageAutomated Integration Testtests/backend/test_database.py, test_sqlite_wal.py
FR-04Pluggable Vector BackendsAutomated Integration Testtests/backend/test_vector_store.py, test_vector_health.py
FR-05Universal Git IngestionAutomated Integration Testtests/backend/test_git_manager.py, test_shallow_clone.py
FR-06Managed Local StorageAutomated Unit & Integrationtests/backend/test_local_storage.py, test_storage_api.py
FR-07PDF Ingestion & Vision OCRAutomated Integration Testtests/backend/test_pdf_extractor.py, test_pdf_storage_api.py
FR-08FastMCP 2.0 & 14 ToolsAutomated End-to-End Testtests/backend/test_mcp_server.py, test_mcp_tools.py
FR-09RFC 9728 OAuth 2.1 & RBACAutomated Unit & Securitytests/backend/test_auth.py, test_rbac.py, test_oauth_metadata.py
FR-103-Pane Codebase NavigatorAutomated Component & E2Efrontend/src/tests/Navigator.test.tsx, e2e/navigator.spec.ts
FR-11Dynamic Model DiscoveryAutomated Integration Testtests/backend/test_litellm_service.py, test_model_metadata.py
FR-12Diagnostic Ring BufferAutomated Unit Testtests/backend/test_logger.py, test_logs_api.py
FR-13Unified Ingestion CatalogAutomated Integration Testtests/backend/test_catalog.py, frontend/src/tests/Catalog.test.tsx
FR-14Architecture ADR ManagementAutomated Integration Testtests/backend/test_adr.py
FR-15Multi-Theme Responsive UIAutomated E2E & Layoutfrontend/src/tests/Theme.test.tsx, e2e/layout-inspector.spec.ts
NFR-01Sub-500 LOC MaintainabilityAutomated Linter / CIoxlint, ruff, repository file size audits
NFR-04Path Traversal ProtectionAutomated Security Testtests/backend/test_local_storage.py::test_path_traversal
NFR-07Zero Horizontal OverflowAutomated E2E Layout Teste2e/layout-inspector.spec.ts

Executing Automated Verification Suites ​

1. Running Backend Pytest Verification ​

Execute the full Python test suite:

bash
pytest -v

To run with statement and branch coverage metrics:

bash
pytest -v --cov=app --cov-report=term-missing

2. Running Frontend Vitest Verification ​

Execute React component tests:

bash
npm --prefix frontend run test

3. Running Playwright Layout Inspector Audits ​

Execute viewport and layout overflow audits:

bash
npm --prefix frontend run test:layout

Released under the MIT License.