Skip to main content

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
최근 소스 활동
2026년 7월 20일 22:58
감지된 SKILL.md 언어
영어
스타
51
포크
7

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
bats
description
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 Plugin Bash Automated Testing System. Write unit and integration tests for shell scripts with readable syntax, TAP output, and first-class CI support. ## Installation ```bash npm install -g bats # or brew install bats-core # Debian/Ubuntu: apt install bats ``` ## Basic Usage ```bash # 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 ```bash # 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 ```bash # 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 ```bash sc bats test run test/example.bats sc bats _ _ --filter "auth" test/ sc plugins learn bats ```
GitHub에서 보기