본문으로 건너뛰기
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 / 1,000자

이 양식은 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의 스킬 모두 보기

이 스킬의 문제 신고