run-unit-tests

Detects the test runner from project configuration files and executes unit test suites.

5|1|Updated Oct 18, 2019
One-click install
npx skills add https://github.com/Marshall-Hallenbeck/dot_files --skill run-unit-tests-marshall-hallenbeck
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: run-unit-tests
Source: https://github.com/Marshall-Hallenbeck/dot_files/tree/main/.claude/skills/run-unit-tests
Command: npx skills add https://github.com/Marshall-Hallenbeck/dot_files --skill run-unit-tests-marshall-hallenbeck

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the friction of manually identifying and executing test suites across diverse project environments by automatically detecting the appropriate test runner.

Core Features & Use Cases

  • Auto-Detection: Identifies the correct test runner (pytest, Jest, Vitest, cargo, or go test) based on project configuration files.
  • Scoped Execution: Allows users to target specific project areas like backend or frontend, or run the entire suite.
  • Use Case: A developer working in a polyglot repository can simply trigger the test suite without needing to remember whether the current project uses Jest or Vitest, ensuring consistent quality checks.

Quick Start

Use the run-unit-tests skill to execute all unit tests for the backend directory.

Frequently Asked Questions about run-unit-tests

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

FAQPage Schema
How do I automatically run unit tests across different programming languages?

You can automatically run unit tests across different programming languages by using a tool that detects the correct test runner from project configuration files. This allows developers to trigger test suites in polyglot repositories without remembering specific framework commands.

Does this unit test automation tool work with both Python and JavaScript projects?

Yes, this unit test automation tool works with Python, JavaScript, and TypeScript projects. It identifies the underlying test runner, such as pytest, Jest, or Vitest, directly from your project configuration files to execute the tests.

How do I run unit tests for a specific directory like my backend?

To run unit tests for a specific directory like your backend, you can trigger scoped execution. This allows you to target specific project areas or run the entire suite by specifying the desired directory path.

What happens if the test runner is missing or not detected?

If the test runner is missing or not detected from the project configuration files, the execution handles the scenario explicitly. It ensures consistent verification by reporting the missing runner rather than failing silently.

What is the best way to execute unit tests in a polyglot repository?

The best way to execute unit tests in a polyglot repository is to use auto-detection to identify the correct test runner. This removes the friction of manually identifying and executing test suites across diverse project environments.

How are pass and fail counts reported when running unit tests?

Pass and fail counts are reported after executing the unit-level test suites. This ensures consistent verification by providing clear reporting on the test results across the detected framework.