Agent skill · software engineering · thebushidocollective

cocoapods-test-specs

Use when adding automated tests to CocoaPods libraries using test specs. Covers test spec configuration, app host requirements, and testing patterns that integrate with pod lib lint validation.

Why this skill is useful

Provides specific CocoaPods test spec configurations and patterns that the AI wouldn't reliably generate on its own.

What it needs

About 4k tokens when loaded. Last updated 2026-07-19. 187 stars on the source repository.

What this skill does

CocoaPods - Test Specs Integrate automated tests into your CocoaPods library that run during validation. What Are Test Specs? Test specs define test targets that CocoaPods builds and runs automatically during pod lib lint and pod spec lint validation. Benefits Automatic Testing: Tests run during every lint validation Confidence: Validates library works as expected before publishing CI Integration: Consistent testing across all environments Documentation: Tests serve as usage examples Basic Test Spec App Host Requirements Tests Without App Host Tests With App Host Multiple Test Specs Platform-Specific Test Specs Test Dependencies Testing Frameworks Mocking Frameworks Test Resources Scheme Configuration Testing Subspecs Common Testing Patterns XCTest Pattern Quick/Nimble Pattern Network Mocking Pattern Snapshot Testing Pattern Running Tests During Lint Validation Standalone Test Execution Best Practices Directory Structure Test Organization Dependency Management Anti-Patterns Don't ❌ Skip tests during validation ❌ Mix test and production code ❌ Include test dependencies in main spec ❌ Use requiresapphost unnecessarily Do ✅ Run tests during every validation ✅ Separate test and production code ✅ Keep test dependencies in test spec ✅ Use app host only when needed Example: Complete Test Spec Setup Related Skills cocoapods-podspec-fundamentals cocoapods-subspecs-organization cocoapods-publishing-workflow

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills thebushidocollective/test-specs

View the source on GitHub

Browse the @skills marketplace