bats
БесплатноБез исполняемых скриптовНе проверенUse this skill when the user wants to write or run Bash shell tests — TAP-compliant test suites, CI integration, mocking, and parallel test execution.
от javimosch★ 58 звёзд на GitHubОб этом скилле
bats Plugin
Bash Automated Testing System. Write unit and integration tests for shell scripts with readable syntax, TAP output, and first-class CI support.
Commands
bats <resource> <action>— Execute bats commandsbats test run— Run a bats test file or test suitebats _ _— Passthrough to bats CLI
Installation
npm install -g bats
# or
brew install bats-core
# Debian/Ubuntu: apt install bats
Basic Usage
# Run a single test file
bats test/example.bats
# Run all tests in a directory
bats test/
# Count tests without running
bats --count test/
Common Patterns
# Filter tests by name pattern
bats --filter "login" test/
# Parallel execution
bats --jobs 4 test/
# TAP output for CI
bats --tap test/
# JUnit XML for reporting
bats --formatter junit test/ > report.xml
Writing Tests
# example.bats
@test "addition works" {
result=$(echo $((2 + 2)))
[ "$result" -eq 4 ]
}
Usage Examples
- "Run all Bash tests in the test/ directory"
- "Filter bats tests matching 'deploy'"
- "Output bats results in TAP format for CI"
SuperCLI
sc bats test run test/example.bats
sc bats _ _ --filter "auth" test/
sc plugins learn bats
Установить bats в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл bats?
Use this skill when the user wants to write or run Bash shell tests — TAP-compliant test suites, CI integration, mocking, and parallel test execution.
Как установить скилл bats?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл bats запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic