Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills Aโ€“Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Bats Testing Patterns

ASecurity

Master Bash Automated Testing System (Bats) for comprehensive shell script testing. Use when writing tests for shell scripts, CI/CD pipelines, or requiring test-driven development of shell utilities.

2 stars
0 votes
0 copies
0 views
Added 9/19/2026
testinggoshellbashtestingci/cd

Security Analysis

A100/100

Scanned 9/19/2026

Install to Claude Code

$npx -y skills add ibragimov-oasis/oasis-languages-jp --skill bats-testing-patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Bats Testing Patterns?

Add the live security badge to your README โ€” it updates automatically with every re-scan.

Security grade badge for Bats Testing Patterns
[![Security: A โ€” Skills Directory](https://www.skillsdirectory.com/api/skills/ibragimov-oasis-bats-testing-patterns-oasis-languages-jp/badge)](https://www.skillsdirectory.com/skills/ibragimov-oasis-bats-testing-patterns-oasis-languages-jp)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: bats-testing-patterns
description: "Master Bash Automated Testing System (Bats) for comprehensive shell script testing. Use when writing tests for shell scripts, CI/CD pipelines, or requiring test-driven development of shell utilities."
risk: unknown
source: community
date_added: "2026-02-27"
tags:
  - domain/skills
  - artifact/skill
  - source/skills-antigravity
---

# Bats Testing Patterns

Comprehensive guidance for writing comprehensive unit tests for shell scripts using Bats (Bash Automated Testing System), including test patterns, fixtures, and best practices for production-grade shell testing.

## Use this skill when

- Writing unit tests for shell scripts
- Implementing TDD for scripts
- Setting up automated testing in CI/CD pipelines
- Testing edge cases and error conditions
- Validating behavior across shell environments

## Do not use this skill when

- The project does not use shell scripts
- You need integration tests beyond shell behavior
- The goal is only linting or formatting

## Instructions

- Confirm shell dialects and supported environments.
- Set up a test structure with helpers and fixtures.
- Write tests for exit codes, output, and side effects.
- Add setup/teardown and run tests in CI.
- If detailed examples are required, open `resources/implementation-playbook.md`.

## Resources

- `resources/implementation-playbook.md` for detailed patterns and examples.

## ๐Ÿ”— ะกะฒัะทะธ

- [[MOC - Skills]] โ€” Skills library
- [[skills/skills-antigravity]] โ€” Category: skills-antigravity

Attribution

ibragimov-oasisibragimov-oasis
View sourceMore from ibragimov-oasis โ†’
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Screen Reader Testing

Practical guide to testing web applications with screen readers for comprehensive accessibility validation.

393431 votes

Python Testing

ไฝฟ็”จpytestใ€TDDๆ–นๆณ•ใ€ๅคนๅ…ทใ€ๆจกๆ‹Ÿใ€ๅ‚ๆ•ฐๅŒ–ๅ’Œ่ฆ†็›–็އ่ฆๆฑ‚็š„Pythonๆต‹่ฏ•็ญ–็•ฅใ€‚

2456590 votes

Tdd Workflow

ๅœจ็ผ–ๅ†™ๆ–ฐๅŠŸ่ƒฝใ€ไฟฎๅค้”™่ฏฏๆˆ–้‡ๆž„ไปฃ็ ๆ—ถไฝฟ็”จๆญคๆŠ€่ƒฝใ€‚ๅผบๅˆถๆ‰ง่กŒๆต‹่ฏ•้ฉฑๅŠจๅผ€ๅ‘๏ผŒๅŒ…ๅซๅ•ๅ…ƒๆต‹่ฏ•ใ€้›†ๆˆๆต‹่ฏ•ๅ’Œ็ซฏๅˆฐ็ซฏๆต‹่ฏ•๏ผŒ่ฆ†็›–็އ่ถ…่ฟ‡80%ใ€‚

2456590 votes

Springboot Tdd

ไฝฟ็”จJUnit 5ใ€Mockitoใ€MockMvcใ€Testcontainersๅ’ŒJaCoCo่ฟ›่กŒSpring Boot็š„ๆต‹่ฏ•้ฉฑๅŠจๅผ€ๅ‘ใ€‚้€‚็”จไบŽๆทปๅŠ ๅŠŸ่ƒฝใ€ไฟฎๅค้”™่ฏฏๆˆ–้‡ๆž„ๆ—ถใ€‚

2456590 votes

Eval Harness

ๅ…‹ๅŠณๅพทไปฃ็ ไผš่ฏ็š„ๆญฃๅผ่ฏ„ไผฐๆก†ๆžถ๏ผŒๅฎžๆ–ฝ่ฏ„ไผฐ้ฉฑๅŠจๅผ€ๅ‘๏ผˆEDD๏ผ‰ๅŽŸๅˆ™

2456590 votes
View all in testing โ†’