test-coverage-improver

Run per-package nyc coverage runs and propose mocha tests for node-redis.

17.6k|2.0k|Updated Sep 14, 2010
One-click install
npx skills add https://github.com/redis/node-redis --skill test-coverage-improver-redis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-coverage-improver
Source: https://github.com/redis/node-redis/tree/main/.agents/skills/test-coverage-improver
Command: npx skills add https://github.com/redis/node-redis --skill test-coverage-improver-redis

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the risk of undetected bugs and unstable releases caused by low or regressed test coverage in the node-redis monorepo, eliminating the manual effort of identifying coverage gaps and designing targeted tests.

Core Features & Use Cases

  • Automated Coverage Analysis: Runs per-package nyc test suites, parses coverage artifacts to identify low-coverage files, branches, and uncovered code paths.
  • Targeted Test Proposal: Prioritizes high-impact gaps in core client, cluster, and module code, then designs test scenarios for error handling, edge cases, and risky logic.
  • User-Coordinated Implementation: Presents proposed tests and expected coverage gains for user approval before writing and validating tests against repo lint and build standards.

Quick Start

Use the test-coverage-improver skill to analyze coverage gaps for the @redis/client package and propose targeted tests to improve its test coverage.

Frequently Asked Questions about test-coverage-improver

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find low test coverage gaps in a node-redis monorepo?

To find low test coverage gaps in a node-redis monorepo, execute per-package nyc coverage runs and parse the coverage artifacts. This analysis identifies low-coverage files, branches, and risky error handling code paths across client, cluster, and module packages.

How do I generate mocha tests for uncovered node-redis code paths?

Generate mocha tests for uncovered node-redis code paths by prioritizing high-coverage gaps and designing targeted test scenarios for error handling and edge cases. Proposed tests are presented for user approval before implementation and validation against repo lint and build standards.

Can I analyze test coverage for individual packages in a JavaScript monorepo?

Yes, you can analyze test coverage for individual packages in a JavaScript monorepo by running per-package nyc test suites. This isolates coverage artifacts for specific client, cluster, or module packages to accurately identify uncovered branches and risky logic.

What is the best way to improve test coverage for Redis client error handling?

The best way to improve test coverage for Redis client error handling is to parse nyc coverage artifacts to locate risky uncovered code paths, then generate high-impact mocha test proposals targeting those specific error handling scenarios.

Does this test coverage improvement process require manual test writing?

No, the test coverage improvement process uses user-coordinated implementation where it automatically designs and proposes targeted tests with expected coverage gains. After user approval, it writes the tests and validates them via coverage reruns and lint checks.

Why are nyc coverage runs not reflecting new test improvements in my monorepo?

If nyc coverage runs are not reflecting new test improvements, validate updates by executing coverage reruns and lint checks after implementing approved tests. Ensuring tests align with repo standards prevents build failures that block coverage artifact generation.