# Run Tests

> Project-specific test execution commands. Customize for your project.

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

---


# Run Tests Skill (Project-Specific)

**CUSTOMIZE THIS FILE FOR YOUR PROJECT.**

## Quick Reference

```bash
# TypeScript/JavaScript (bun)
bun test
bun test path/to/test.ts

# Python (uv)
uv run pytest
uv run pytest tests/test_specific.py -v
```

## Test Commands

### TypeScript/JavaScript (Bun)

```bash
# Run all tests
bun test

# Run specific test file
bun test src/components/Button.test.ts

# Run tests matching pattern
bun test --grep "should handle"

# Run with coverage
bun test --coverage
```

### Python (UV + pytest)

```bash
# Run all tests
uv run pytest

# Run specific test file
uv run pytest tests/test_api.py

# Run with verbose output
uv run pytest -v

# Run with coverage
uv run pytest --cov=src
```

## Expected Output

Tests should exit with:
- Exit code 0 = All tests passed
- Exit code 1 = Tests failed

## Integration with Self-Test

When implementing, follow this pattern:
```
1. Write code
2. Write tests for the code
3. Run: bun test (or uv run pytest)
4. If tests fail → fix code
5. If tests pass → continue
```

