feat: increase test coverage and add centralized test results infrastructure#2
Draft
feat: increase test coverage and add centralized test results infrastructure#2
Conversation
…ructure - Add 39 new tests for @ag-ui/core capabilities schemas (SubAgentInfo, Identity, Transport, Tools, Output, State, MultiAgent, Reasoning, MultimodalInput/Output, Multimodal, Execution, HumanInTheLoop, AgentCapabilities) — previously untested - Add 16 new tests for @ag-ui/encoder preferredMediaTypes utility (undefined/empty accept, exact match, wildcard, quality values, parameters, case insensitivity, complex headers) — previously untested - Update vitest.base.ts: add JUnit XML and JSON reporters when CI=true so every CI run writes machine-readable results that can be uploaded as artifacts - Update unit-typescript-sdk.yml: run test:coverage instead of test, upload unit-test-results (90-day) and unit-coverage-reports (30-day) as artifacts - Add test-results/README.md documenting centralized results layout, reporters in use, and historical storage recommendations (Codecov, SonarCloud, Allure, self-hosted S3) - Update .gitignore: ignore all package-level test-results/ dirs while keeping the root test-results/README.md tracked Agent-Logs-Url: https://github.com/jamesmkfoo23/ag-ui/sessions/625386c6-228e-4923-bb60-babfcd82d937 Co-authored-by: jamesmkfoo23 <45367108+jamesmkfoo23@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Increase test and E2E test coverage and capture results
feat: increase test coverage and add centralized test results infrastructure
Apr 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds unit tests for two completely untested modules, wires up machine-readable test reporters, and establishes a documented strategy for capturing and retaining test results across CI runs.
New tests
@ag-ui/corecapabilities (capabilities.test.ts) — 39 tests covering all 13 capability schemas (SubAgentInfo,IdentityCapabilities,TransportCapabilities,ToolsCapabilities,OutputCapabilities,StateCapabilities,MultiAgentCapabilities,ReasoningCapabilities,MultimodalInput/OutputCapabilities,MultimodalCapabilities,ExecutionCapabilities,HumanInTheLoopCapabilities,AgentCapabilitiesSchema). Covers happy paths, all-optional fields, nested validation, type rejection, and unknown-key stripping.@ag-ui/encodermedia-type (media-type.test.ts) — 16 tests forpreferredMediaTypes: undefined/emptyAccept, exact matching, wildcard (*/*,text/*), quality-value ordering,q=0exclusion, parameter matching, case insensitivity, and complex multi-entry headers.Test results infrastructure
vitest.base.ts— Addsjunitandjsonreporters whenCI=true, writing per-package output to./test-results/. No change to local DX (stillverboseonly).unit-typescript-sdk.yml— Switches totest:coverage; uploads two artifact bundles per run:unit-test-resultsunit-coverage-reportstest-results/README.md— Documents the directory layout, active reporters (unit + e2e), and recommends Codecov, SonarCloud, Allure, or a self-hosted S3 bucket for long-term cross-run trending..gitignore— Tightened fromtest-results/(nukes everything) to**/test-results/+!test-results/README.mdso generated files are excluded everywhere while the root README is tracked.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
fonts.googleapis.com/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/ag-ui/ag-ui/apps/dojo/node_modules/.bin/../next/dist/bin/next build bash odul�� --noprofile(dns block)us.posthog.com/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/ag-ui/ag-ui/integrations/mastra/typescript/examples/node_modules/.bin/../mastra/dist/index.js build sh -c "mcp-server-playwright" --viewport-size '1280, 720' --output-dircredential.username(dns block)If you need me to access, download, or install something from one of these locations, you can either: