Repository navigation
Testing Requirements
Cover valid cached token reuse, expired token deletion, new token persistence after login, and no-op behavior when no workspace is active.
Acceptance Criteria:
- Tests prove valid cached tokens are reused.
- Tests prove expired cached tokens are deleted.
- Tests prove newly obtained tokens are cached when a workspace is active.
After each dependency upgrade slice, dotnet build succeeds for McpServerManager, Desktop, Web, and Director, and the five test suites (UI.Core, Core, Desktop, Web, Director) pass with zero failed and zero skipped tests.
Unit tests cover Windows and Linux resolution, argument forwarding, unsupported platforms, and child exit codes; package inspection verifies both runtime payloads and portable DotnetToolSettings; the installed director help command exits successfully.
Acceptance Criteria:
- Focused Director launcher tests pass with zero failures and zero skipped tests. (evidence: DirectorToolLauncherTests result was 7 passed, 0 failed, 0 skipped; full Director test project was 147 passed, 0 failed, 0 skipped.)
- A NUKE-produced package contains the launcher plus both platform payloads and installs as director. (evidence: UpdateDirectorTool succeeded; dotnet tool list shows 0.6.17; archive and installed store contain launcher and win-x64/linux-x64 payloads; Windows and Pengwin help smoke tests exited 0.)
Verify registration, lazy server lookup, same-server marker auth, sanitized failures and marker trust through a scripted QBrain endpoint, then verify against the updated QBrain contract.
Acceptance Criteria:
- With no workspace marker, Director requests GET /api-key directly from the selected QBrain server on demand and keeps the key in memory. (evidence: Director HV Round 2 AGREE (100% accuracy and 100% completeness, 10 PASS). MCP session Codex-20261127T003431Z-plugin-session, turn req-20261127T003531Z-prompt-3df9.)
- Markerless add-workspace sends the issued key in X-Api-Key and the target directory in the registration body to the same QBrain server. On success it verifies the new marker and server nonce. (evidence: Director HV Round 2 AGREE (100% accuracy and 100% completeness, 10 PASS). MCP session Codex-20261127T003431Z-plugin-session, turn req-20261127T003531Z-prompt-3df9.)
- Registration retains same-server marker credentials and existing server selection. Help requires no network request. (evidence: Director HV Round 2 AGREE (100% accuracy and 100% completeness, 10 PASS). MCP session Codex-20261127T003431Z-plugin-session, turn req-20261127T003531Z-prompt-3df9.)
- Lookup and registration failures return a nonzero exit with a credential-free diagnostic. Failures to look up a key do not send a registration request. (evidence: Director HV Round 2 AGREE (100% accuracy and 100% completeness, 10 PASS). MCP session Codex-20261127T003431Z-plugin-session, turn req-20261127T003531Z-prompt-3df9.)
Validate build target compilation, missing-key failure before packaging, WhatIf without mutation, both package contents and IDs, and dry-run push command selection using a local test feed or intercepted dotnet invocation. Never push a validation package to NuGet.org.
Cover dashboard loading, open triage TODO filtering, cross-workspace navigation, detail selection, empty states, and error handling.
Acceptance Criteria:
- UI.Core tests cover dashboard mapping, created TODO hydration, completed or missing TODO exclusion, selected detail loading, empty states, and errors.
- Director and Web tests cover tab registration, triage TODO click-through navigation, and workspace-aware TODO detail loading.
Cover report multi-select, move to new group, consolidate into selected group, group multi-select combine, disabled states, and refresh/error behavior.
Tests must cover command layer boundaries, agent event listener dispatch/service behavior, Android voice factory wiring, direct-construction source gates, and app-level build validation.
Validate that the Blazor Hybrid host is part of the solution and builds, with focused coverage for shared startup registration where feasible.
Acceptance Criteria:
- Targeted dotnet build for the hybrid host succeeds. (evidence: dotnet build src/McpServerManager.Web.Hybrid/McpServerManager.Web.Hybrid.csproj --no-restore -v minimal -maxcpucount:1 /p:UseSharedCompilation=false)
- Existing mcp-web targeted tests or compile validation still pass after shared startup extraction. (evidence: dotnet test tests/McpServerManager.Web.Tests/McpServerManager.Web.Tests.csproj --no-restore --filter FullyQualifiedName~RoutesHybridHostTests)
bUnit tests verify initial raw editing, rendered Markdown output, tab accessibility state, preview freshness, and raw HTML suppression.
Acceptance Criteria:
- Focused MemoryPageTests pass with zero failures and zero skipped tests. (evidence: MemoryPageTests result was 7 passed, 0 failed, 0 skipped.)
Unit tests cover Windows/Linux resolution, argument forwarding contract, and unsupported platforms; package inspection verifies both runtime payloads and portable DotnetToolSettings.
Acceptance Criteria:
- Focused launcher tests pass with zero failures and zero skipped tests. (evidence: WebToolLauncherTests result was 7 passed, 0 failed, 0 skipped.)
- A NUKE-produced package contains the launcher plus both platform payloads and installs as mcp-web. (evidence: UpdateWebUiTool succeeded; dotnet tool list shows 0.6.17; package and installed tool store contain launcher plus win-x64 and linux-x64 payloads.)
Unit and bUnit tests must verify route/navigation composition, QBrain-derived overview projection, workspace identity, workspace-change invalidation, loading/empty/error states, and shared Web/Hybrid registration.
Acceptance Criteria:
- Shell and overview acceptance scenarios cover every AC on FR-WEB-004 with success mocks before production implementation.
- Workspace switches prove stale state is discarded and the active view reloads under the new workspace.
Contract, handler, ViewModel, adapter, and bUnit tests must verify native FR/TR/TEST round trip, filters, paging, CRUD, atomic batch behavior, delete confirmation, raw and rendered Markdown, draft preservation, and typed failures.
Tests must verify user IDs bypass generation; blank IDs call chat completions with workspace context; candidates are parsed, grammar-checked, collision-checked, editable, and confirmed; failures preserve drafts and do not create.
Tests must verify criterion add, edit, order, satisfaction, evidence, removal, TODO-copy review, unrelated-field preservation, and completion-count refresh across editor, catalog, overview, and traceability.
Tests must verify FR-to-TR/TEST mappings, criteria completion, Realizes and diagram projections, all filters, filter preservation, supported repair commands, partial failures, and authoritative refresh.
Tests must verify layer list/create/update, immutable key and order, scope validation, Workspace-owned current-layer selection, Requirements-owned effective resolution, concurrency conflict handling, and refresh behavior.
Tests must verify exact payload hashing, dry-run action projection, explicit confirmation, same-key same-payload replay, same-key different-payload conflict, atomic apply, run lookup, and exclusion of unsupported recovery fields.
Tests must verify explicit direct-apply confirmation, supported inputs, result classifications, all generation selectors and formats, active-workspace isolation, the approved transfer model, authorization, and typed failures.
Tests must verify catalog filters, aggregate CRUD, actors, ordered flows and steps, supporting details, lifecycle, product membership, Realizes links, coverage refresh, conflicts, and permissions.
Tests must verify schema-v1 graph round trip and editing, validation, stale and unsaved protection, Mermaid and PlantUML generation from persisted graph, sequence generation from flows, and last-valid rendering preservation.
Contract and UI tests must verify durable QBrain audit projection, filters, paging, details, redaction and permission behavior when the endpoint exists, and authoritative-unavailable behavior with no browser-derived substitute until it exists.
Tests must cover read and write authorization, loading, empty, stale, disconnected, partial, validation, conflict, permission, retry, keyboard, focus, accessible naming and announcements, aiUnit approved-wireframe comparison, Windows Hybrid smoke, and Linux Web smoke.
Acceptance Criteria:
- Every mapped FR acceptance criterion has an executable test or an explicitly blocked dependency test before the corresponding phase enters TestReady.
- Each phase achieves at least 90 percent line coverage on touched handlers, adapters, and ViewModels with zero failed and zero skipped tests in current-plus-prior unit scope.
- aiUnit visual and accessibility evidence covers every approved Requirements wireframe and declared system state after the full unit gate is green.
Validate that the Nuke build compiles and the web tool target uses the hybrid project while preserving mcp-web command metadata.
Acceptance Criteria:
- Targeted build/test validation passes for the changed Nuke build project or static verification confirms the project path and command. (evidence: build/Build.BuildAndDeployTargets.cs:759-761; dotnet build build/Build.csproj --no-restore; build.ps1 UpdateWebUiTool --what-if --skip-version-bump; git diff --check.)
Cover persistent back navigation, Ctrl+W workspace picker behavior, workspace-change reload/invalidation, and TODO sidebar Show Done default/filter behavior with bUnit and focused view-model tests.
This wiki was generated by QBrain. Explore the QBrain project on GitHub.
- Home
- Functional Requirements
- Technical Requirements
- Testing Requirements
- TR per FR Mapping
- Requirements Matrix
- McpServerManager
- Director
- Director Requirements
- Web UI Requirements
- MCP Web Architecture
- Operations
- Keycloak Client Architecture
- Keycloak Setup Scripts
- MVVM Data Resolution Pattern
- DI Convergence Matrix
- DI Convergence Diagram