test

Run a Node.js project's full test suite with compilation checks and unit tests.

84|5|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/fitlab-ai/agent-infra --skill test-fitlab-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test
Source: https://github.com/fitlab-ai/agent-infra/tree/main/.agents/skills/test
Command: npx skills add https://github.com/fitlab-ai/agent-infra --skill test-fitlab-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

执行完整的测试流程常常涉及繁琐的步骤与重复操作。本 Skill 提供一个自动化入口,能在需要时执行编译检查和单元测试,并给出清晰的结果摘要。

Core Features & Use Cases

  • 全量测试执行:自动完成编译检查与单元测试,减少人工干预。
  • 结果摘要输出:汇总总测试数、通过数、失败数及覆盖率等关键指标,便于快速评估代码质量。
  • 失败干预策略:在测试失败时提供失败详情与改进方向,但不自动修改代码,需要用户确认后再行动。
  • 使用场景:在提交变更前进行本地或 CI 场景的全面回归测试,确保新修改不破坏现有功能。

Quick Start

直接请求执行完整测试,触发该 Skill 的测试流程。

Frequently Asked Questions about test

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

FAQPage Schema
How do I automate Node.js unit testing and build checks before committing changes?

Automate Node.js unit testing and build checks by triggering a full test suite execution that handles compilation checks and unit tests deterministically, providing a results summary for quick regression verification before committing changes.

What is included in the test results summary for automated unit tests?

The test results summary includes total test counts, passed tests, failed tests, and coverage metrics to help you quickly assess code quality and identify regressions in your Node.js project.

How does this test runner handle failing unit tests during automated execution?

Failing unit tests trigger a safe failure handling strategy that provides failure details and improvement guidance without automatically modifying code, requiring user confirmation before taking any corrective action.

Can I use this automated test runner for CI pipeline regression testing?

Yes, you can use this test runner for CI pipeline regression testing because it executes tests deterministically and produces a results summary, ensuring new modifications do not break existing functionality in continuous integration workflows.

Do I need to manually fix code when build checks fail during the test execution?

You must manually fix code when build checks fail because this test execution strategy provides failure details and improvement directions rather than automatic fixes, requiring user confirmation before proceeding with any changes.

Why run full unit test suites instead of individual test files for code quality verification?

Running full unit test suites ensures comprehensive regression testing across your entire Node.js project, verifying that new modifications do not break existing functionality and providing a complete results summary for overall code quality assessment.