# Test

> Run tests on the codebase. Use this skill whenever the user asks to run tests, check if tests pass, verify test results, or wants to know the test status of the project. Also use when implementing features (after writing code) to confirm correctness. Use when this capability is needed.

- Skill: `tomevault-io/test-17` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/test-17`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/test-17/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/test-17

---


# Test

Run the test suite to verify functionality.

## Workflow

### 1. Discover Test Command

Investigate available commands by checking project files:

- `flake.nix` / `flake.lock`: Use `nix flake check` or project-specific test commands
- `Makefile` / `justfile`: Look for `test` target
- `package.json`: Check `scripts.test` (use `npm test`, `vitest`, `jest`)
- `go.mod`: Use `go test ./...`
- `Cargo.toml`: Use `cargo test`
- `pyproject.toml` / `setup.py`: Use `pytest` or `python -m unittest`

Prefer project-configured commands over language defaults. If multiple options exist, use the one defined in the project's build configuration.

### 2. Run Tests

- Run the discovered test command
- If the command fails due to missing dependencies, recommend the appropriate setup (e.g., `nix develop`, `npm install`, `go mod download`)
- If no test framework is configured, propose adding one appropriate for the project

### 3. Report and Fix

- Report test results clearly: total, passed, failed, skipped
- Fix any failing tests before proceeding

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/xantibody) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-13 -->

