Testing Strategies
技能 活跃Testing patterns for Micronaut/Kotlin backend including repository tests, integration tests, and test data builders. Use when writing tests, setting up test infrastructure, or improving coverage.
To offer robust testing patterns and setup guidance for Micronaut/Kotlin backend development, ensuring code quality and coverage.
功能
- Integration test patterns for Micronaut endpoints
- Repository test structure and examples
- Test data builder utilities
- Clear naming conventions for tests
- Guidance on required test coverage
使用场景
- Writing integration tests for Micronaut controllers
- Setting up repository tests with a database
- Improving test coverage with specific strategies
- Establishing consistent test naming conventions
非目标
- Providing general Kotlin or Java programming advice
- Covering frontend testing frameworks
- Automating test execution beyond standard build commands
工作流
- Understand required test coverage per endpoint
- Implement integration tests using Retrofit clients
- Write repository tests extending AbstractRepositoryTest
- Utilize MockK for unit testing services and managers
- Follow naming conventions for test methods
实践
- Test-Driven Development
- Code Quality
- Backend Testing
Documentation
- info:Configuration & parameter referenceWhile the SKILL.md outlines testing strategies and provides code examples, explicit documentation of all options, parameters, or default configurations for any underlying tools is missing.
- warning:READMEThe README.md file is overly long and appears to be for a different project ('Spartan AI Toolkit'), not this specific 'testing-strategies' skill.
Practical Utility
- info:Edge casesThe SKILL.md mentions connection pool exhaustion and MockK + coroutines gotchas with recovery steps, but other potential failure modes like malformed input or expired credentials are not explicitly documented.
安装
npx skills add spartan-stratos/spartan-ai-toolkit通过 npx 运行 Vercel skills CLI(skills.sh)— 需要本地安装 Node.js,以及至少一个兼容 skills 的智能体(Claude Code、Cursor、Codex 等)。前提是仓库遵循 agentskills.io 格式。
质量评分
类似扩展
Backend Api Design
99Design RPC-style APIs with layered architecture (Controller → Manager → Repository). Use when creating new API endpoints, designing API contracts, or reviewing API patterns.
Security Checklist
98Security best practices for Micronaut/Kotlin backend including authentication, authorization, input validation, and OWASP prevention. Use when implementing auth, validating inputs, or reviewing security.
Senior Backend Engineer
100Designs and implements backend systems including REST APIs, microservices, database architectures, authentication flows, and security hardening. Use when the user asks to "design REST APIs", "optimize database queries", "implement authentication", "build microservices", "review backend code", "set up GraphQL", "handle database migrations", or "load test APIs". Covers Node.js/Express/Fastify development, PostgreSQL optimization, API security, and backend architecture patterns.
Definition Of Done
100Mandatory checks to run before completing any task that touches md files or dart code in this repository.
API Endpoint Creator
97Creates RPC-style endpoint following layered architecture (Controller → Manager → Repository). Use when creating new API endpoints or CRUD operations.
Migrate Validate
100Validate pending migrations for foreign key consistency, rollback safety, and best practices