alistaircroll

unit-tests

0
0
# Install this skill:
npx skills add alistaircroll/verbose-deployment --skill "unit-tests"

Install specific skill from multi-skill repository

# Description

Detect and run the project's unit test suite, collecting pass/fail counts, duration, and error details. Use as Phase 3 of the deployment pipeline or when you need to verify unit tests pass.

# SKILL.md


name: unit-tests
description: "Detect and run the project's unit test suite, collecting pass/fail counts, duration, and error details. Use as Phase 3 of the deployment pipeline or when you need to verify unit tests pass."


Unit Tests

Run the project's unit test suite and collect results.

Detect

Look for test runners in package.json scripts or project config:

Ecosystem Commands to check
Node.js npm test, vitest run, jest
Python pytest, python -m unittest
Rust cargo test
Go go test ./...

Check package.json scripts.test, vitest.config.*, jest.config.*, pytest.ini, pyproject.toml [tool.pytest], etc.

Run

Execute the detected test command. Let it run to completion β€” do not interrupt on first failure (most runners have a --bail mode, but we want full results).

Collect

  • Total test count and pass/fail/skip breakdown
  • Test suite count (files)
  • Duration
  • Any failing test names and error messages
  • Exit code

Stop Conditions

STOP if: Any test fails. Fix the failing tests before proceeding to the build phase.

# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.