Skip to content
Development
Skill

/testing

Запуск тестов проекта: unit, integration. Определение типа проекта и выбор стратегии.

From plugin
claude-code-starter
19018 skills5 agents20 commands
Install
$ npx -y skills add alexeykrol/claude-code-starter --skill testing --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/testing

Context preview

The summary Claude sees to decide when to auto-load this skill.

Запуск тестов проекта: unit, integration. Определение типа проекта и выбор стратегии.

SKILL.md

testing.SKILL.md
name: testing
description: "Запуск тестов проекта: unit, integration. Определение типа проекта и выбор стратегии."
allowed-tools: Read Glob Grep Bash
disable-model-invocation: true

Skill: Testing

Определение тестового окружения

# Node.js проект
if [ -f "package.json" ]; then
  echo "node"
  cat package.json | grep -A5 '"scripts"' | grep test
fi

# Python проект
if [ -f "pyproject.toml" ] || [ -f "pytest.ini" ] || [ -f "setup.py" ]; then
  echo "python"
fi

Запуск тестов

Node.js

npm test

Python

python3 -m pytest tests/ -v

Интерпретация результатов

  • **Все зелёные:** сообщить «тесты пройдены» с количеством
  • **Есть красные:** показать список упавших тестов, предложить фикс
  • **Нет тестов:** сообщить, предложить создать базовый набор

Когда запускать

  • После каждого серьёзного коммита
  • В составе `/finish`
  • По явному запросу пользователя
  • После работы субагента `implementer`

Coverage (если настроен)

# Node.js
npx jest --coverage 2>/dev/null || true

# Python
python3 -m pytest --cov=src tests/ 2>/dev/null || true

Показать summary coverage, если доступен.

Ships withclaude-code-starter

Claude Code Starter — это готовая управляющая среда для проектов, в которых основной рабочий агент — Claude Code.

Get the whole plugin