本文へ移動
cccskills
無料GitHub で公開

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/supercliスター 56(GitHub 56 + cccskills 0)

実行スコア 未検証

インストール方法を見る

含まれるファイル(1)

  • SKILL.md1.4 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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 commands
  • bats test run — Run a bats test file or test suite
  • bats _ _ — 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

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

Use this skill when the user wants to use 100-exercises-to-learn-rust.

日本語の概要は準備中です。原文の説明を表示しています。

javimosch/supercli562026年10月30日 更新

2to3

無料

Use this skill when the user wants to use 2to3, cli tool: 2to3.

日本語の概要は準備中です。原文の説明を表示しています。

javimosch/supercli562026年10月30日 更新

2to3-2.7

無料

Use this skill when the user wants to use 2to3-2.7, cli tool: 2to3-2.7.

日本語の概要は準備中です。原文の説明を表示しています。

javimosch/supercli562026年10月30日 更新

2to3-3.11

無料

Use this skill when the user wants to use 2to3-3.11, cli tool: 2to3-3.11.

日本語の概要は準備中です。原文の説明を表示しています。

javimosch/supercli562026年10月30日 更新

411toppm

無料

Use this skill when the user wants to use 411toppm, cli tool: 411toppm.

日本語の概要は準備中です。原文の説明を表示しています。

javimosch/supercli562026年10月30日 更新

53AIHub

無料

Use this skill when the user wants to use 53AIHub.

日本語の概要は準備中です。原文の説明を表示しています。

javimosch/supercli562026年10月30日 更新

javimosch のスキルをすべて見る

このスキルの問題を報告する