test-coverage

Verify and enhance test coverage to meet the 80% threshold.

5|1|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/cognitedata/builder-skills --skill test-coverage-cognitedata
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-coverage
Source: https://github.com/cognitedata/builder-skills/tree/main/skills/test-coverage
Command: npx skills add https://github.com/cognitedata/builder-skills --skill test-coverage-cognitedata

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires vitest, jest, pnpm, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill guarantees that a Flows application's test suite covers at least 80% of its codebase, preventing unnoticed bugs and regressions.

Core Features & Use Cases

  • Coverage Verification: Checks for the presence of test frameworks and coverage configuration in the project.
  • Automatic Fixes: Configures tooling, corrects exclusion rules, and installs missing dependencies to meet coverage thresholds.
  • Test Generation: Creates initial test files for untested code paths, including hooks, services, and components, ensuring thorough coverage for reliable deployments.
  • Use Case: A developer integrates this Skill into a CI/CD pipeline to automatically verify and improve test coverage, reducing manual testing efforts and increasing code quality.

Quick Start

Use this Skill to audit your project's test coverage, fix configuration issues, and generate missing tests to meet the 80% line coverage requirement.

Frequently Asked Questions about test-coverage

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

FAQPage Schema
How do I ensure my project meets an 80% test coverage threshold?

To ensure an 80% test coverage threshold, you can automate coverage verification and test generation to configure tooling, fix exclusion rules, and create tests for untested files.

Can I automatically generate tests for untested files in my CI/CD pipeline?

Yes, you can automatically generate tests for untested files in a CI/CD pipeline by auditing your project, fixing configuration issues, and creating initial test files for hooks, services, and components.

Does this test coverage automation work with both Vitest and Jest?

Yes, this test coverage automation works with both Vitest and Jest, checking for the presence of these test frameworks and configuring coverage settings to meet the 80% line coverage requirement.

What is the best way to fix incorrect test coverage exclusions?

The best way to fix incorrect test coverage exclusions is to automate the correction of exclusion rules, which adjusts configurations and installs missing dependencies to accurately verify codebase coverage.

Why does my test suite report low coverage even after adding new tests?

Your test suite might report low coverage because of incorrect exclusion rules or missing configuration, which prevents the framework from accurately tracking the new tests across your codebase.

How to configure pnpm for automated test coverage verification?

To configure pnpm for automated test coverage verification, the tool checks your project setup, installs missing dependencies, and adjusts configuration settings to enforce the 80% coverage requirement.