bats-testing-patterns
/bats-testing-patterns
Uczy używania Bash Automated Testing System (Bats) do testowania skryptów powłoki, pipeline'ów CI/CD i narzędzi tworzonych metodą TDD.
- Autor
- rmyndharis ↗
- Repozytorium
- antigravity-skills ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 07.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 2
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 07.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Uczy używania Bash Automated Testing System (Bats) do testowania skryptów powłoki, pipeline'ów CI/CD i narzędzi tworzonych metodą TDD.
Oryginalny opis (EN)
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.
Jak działa
- Use this skill when
- Do not use this skill when
- Instructions
- Resources
Podgląd 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. --- # 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.
Pliki w paczce (2)
- SKILL.md 1 KB
- resources/implementation-playbook.md 11 KB
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · rmyndharis/antigravity-skills | 100 | MIT |
| FrancoStino/opencode-skills-collection | 100 | MIT |
| rootcastleco/rei-skills | 100 | MIT |
| wshobson/agents | 100 | MIT |
| HermeticOrmus/LibreUIUX-Claude-Code | 95 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki 382c8a2e9fef (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100bats-testing
Konfiguruje Bats-core do testowania narzędzi CLI i skryptów powłoki: pliki .bats z @test, run, asercje na status i output, setup i teardown, load, równoległość i wyjście TAP dla CI. - 100bats-testing
Pomaga pisać testy powłokowe dla narzędzi CLI, bibliotek Bash i REST API z weryfikacją granic procesów, stanu powłoki oraz kodów wyjścia i wyjścia end-to-end. - 100bash-script-tests
Pisze testy skryptów Bash w bats i fałszywe polecenia zewnętrzne w katalogu tests/stubs. - 100shell-script-review
Przegląda skrypty powłoki pod kątem bezpieczeństwa, poprawności i utrzymania oraz sprawdza, czy są sparowane z testami Bats. - 100shell-script-validation
Waliduje skrypty powłoki przez bash -n i shellcheck, sprawdzając składnię i utrzymanie przed commitem lub w CI. - 100bats-test-conventions
Opisuje konwencje testów bats w repozytorium: odzwierciedlanie ścieżki źródła w tests/, użycie istniejących helperów z common.bash i stubowanie git, curl i ssh.