test-unit

Execute Vitest unit tests and generate structured summaries and JSON artifacts.

Updated Mar 6, 2026
One-click install
npx skills add https://github.com/victorp1leon/openclaw-bakery --skill test-unit-victorp1leon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-unit
Source: https://github.com/victorp1leon/openclaw-bakery/tree/main/.codex/skills/test-unit
Command: npx skills add https://github.com/victorp1leon/openclaw-bakery --skill test-unit-victorp1leon

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Quickly run and summarize unit tests to validate code changes and catch regressions across the project.

Core Features & Use Cases

  • Focused and full Vitest runs to cover specific test files or the entire suite.
  • Automated summaries with total tests, passed, failed, and failing names, plus optional markdown report.

Quick Start

Run npm test to execute the unit tests and review the generated summary.

Frequently Asked Questions about test-unit

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

FAQPage Schema
How do I run Vitest unit tests and get a summary of passed and failed results?

Run Vitest unit tests using this skill to execute your test suite and automatically generate a structured summary. It outputs total tests, passed, failed, and failing test names to validate code changes quickly.

Can I execute a focused Vitest run on specific test files instead of the full suite?

Yes, you can execute focused Vitest runs targeting specific test files or run the full test suite across code modules. Both execution modes collect results and emit consistent artifacts like latest-vitest.json for analysis.

What artifacts are generated when automating Vitest test execution?

Automating Vitest test execution generates structured artifacts including latest-summary.md and latest-vitest.json. These files capture total tests, passed, failed, and failing names to support CI audit and reporting workflows.

Does this Vitest test runner provide an automated markdown report for CI pipelines?

Yes, the Vitest test runner provides an optional markdown report alongside structured JSON results. It orchestrates test commands, validates results, and emits latest-summary.md to support CI audit and reporting.

What is the best way to catch code regressions across project modules using Vitest?

The best way to catch regressions is running full Vitest test suites across code modules to validate code changes. This skill orchestrates the test commands and produces a structured summary highlighting any failing test names.

Do I need specific dependencies installed to automate my Vitest test summary?

You need Vitest configured in your project to automate your test summary. The skill orchestrates the existing Vitest commands to execute tests and collect structured results without requiring additional dependencies.