Skip to content
cccskills
FreePublished on 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.

The English summary is being prepared. Showing the original description.

javimosch/supercli56 stars(GitHub 56 + cccskills 0)

Run score Not tested

See how to install

Files included (1)

  • SKILL.md1.4 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

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

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

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

The English summary is being prepared. Showing the original description.

javimosch/supercli56Updated Oct 30, 2026

2to3

Free

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

The English summary is being prepared. Showing the original description.

javimosch/supercli56Updated Oct 30, 2026

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

The English summary is being prepared. Showing the original description.

javimosch/supercli56Updated Oct 30, 2026

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

The English summary is being prepared. Showing the original description.

javimosch/supercli56Updated Oct 30, 2026

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

The English summary is being prepared. Showing the original description.

javimosch/supercli56Updated Oct 30, 2026

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

The English summary is being prepared. Showing the original description.

javimosch/supercli56Updated Oct 30, 2026

See all skills by javimosch

Report a problem with this skill