Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
openai avatar

Test Coverage Improver

  • 114 installs
  • 3.5k repo stars
  • Updated August 4, 2026
  • openai/openai-agents-js

openai-agents-js skill improving test coverage via pnpm test:coverage analysis.

About

openai-agents-js test coverage improvement skill. Runs pnpm test:coverage, inspects coverage artifacts and reports, identifies low-coverage files and uncovered branches, and proposes high-impact tests to add. Focuses on meaningful coverage gains in runtime packages rather than trivial assertion padding. Guides contributors toward tests that exercise critical agent SDK paths, error handling branches, and public API surfaces with the highest risk from untested code.

  • pnpm test:coverage execution and artifact inspection
  • Identifies low-coverage files and uncovered branches
  • Proposes high-impact tests not trivial assertion padding
  • Targets critical agent SDK paths and error branches
  • Coverage-driven test addition for openai-agents-js monorepo

Test Coverage Improver by the numbers

  • 114 all-time installs (skills.sh)
  • +5 installs in the week ending Jul 26, 2026 (Skillselion tracking)
  • Ranked #959 of 2,154 Testing & QA skills by installs in the Skillselion catalog
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
At a glance

test-coverage-improver capabilities & compatibility

Capabilities
run coverage report · identify low coverage · propose high impact tests
Use cases
testing
npx skills add https://github.com/openai/openai-agents-js --skill test-coverage-improver

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs114
repo stars3.5k
Last updatedAugust 4, 2026
Repositoryopenai/openai-agents-js

Which tests should I add to improve coverage in openai-agents-js?

Improve test coverage in openai-agents-js by running pnpm test:coverage, inspecting artifacts, and proposing high-impact tests.

Who is it for?

Contributors raising test coverage in openai-agents-js runtime packages.

Skip if: Docs-only changes or projects outside the monorepo.

When should I use this skill?

User asks to improve test coverage or run pnpm test:coverage in agents-js.

What you get

High-impact tests proposed and added for low-coverage files and branches.

Files

SKILL.mdMarkdownGitHub ↗

Test Coverage Improver

Overview

Use this skill whenever coverage needs assessment or improvement (coverage regressions, failing thresholds, or user requests for stronger tests). It runs the coverage suite, analyzes results, highlights the biggest gaps, and prepares test additions while confirming with the user before changing code.

Quick Start

1. From the repo root run pnpm test:coverage (set CI=1 if needed) to regenerate coverage/. 2. Collect artifacts: coverage/coverage-summary.json (preferred) or coverage/coverage-final.json, plus coverage/lcov.info and coverage/lcov-report/index.html for drill-downs. 3. Summarize coverage: total percentages, lowest files, branches under 80%, and uncovered lines/paths. 4. Draft test ideas per file: scenario, behavior under test, expected outcome, and likely coverage gain. 5. Ask the user for approval to implement the proposed tests; pause until they agree. 6. After approval, write the tests in the relevant package, rerun pnpm test:coverage, and then run $code-change-verification before marking work complete.

Workflow Details

  • Run coverage: Execute CI=1 pnpm test:coverage at repo root. Avoid watch flags and keep prior coverage artifacts only if comparing trends.
  • Parse summaries efficiently:
  • Prefer coverage/coverage-summary.json for file-level totals; fallback to coverage/coverage-final.json if the summary file is absent.
  • Use coverage/lcov.info or coverage/lcov-report/index.html to spot branch- and line-level holes.
  • Prioritize targets:
  • Public APIs or shared utilities in packages/*/src before examples or docs.
  • Files with statements/branches below 80% or newly added code at 0%.
  • Recent bug fixes or risky code paths (error handling, retries, timeouts, concurrency).
  • Design impactful tests:
  • Hit uncovered branches: error cases, boundary inputs, optional flags, and cancellation/timeouts.
  • Cover combinational logic rather than trivial happy paths.
  • Place unit tests near the package (packages/<pkg>/test/*.test.ts) and avoid flaky async timing.
  • Coordinate with the user: Present a numbered, concise list of proposed test additions and expected coverage gains. Ask explicitly before editing code or fixtures.
  • After implementation: Rerun coverage, report the updated summary, and note any remaining low-coverage areas.

Notes

  • Keep any added comments or code in English.
  • Do not create scripts/, references/, or assets/ unless needed later.
  • If coverage artifacts are missing or stale, rerun pnpm test:coverage instead of guessing.

Related skills

FAQ

What command starts analysis?

pnpm test:coverage followed by inspection of coverage artifacts.

What tests are prioritized?

High-impact tests for critical SDK paths and error branches, not trivial padding.

What output files are inspected?

Coverage artifacts and reports identifying low-coverage files and branches.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.