跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

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

工作流

  1. Understand required test coverage per endpoint
  2. Implement integration tests using Retrofit clients
  3. Write repository tests extending AbstractRepositoryTest
  4. Utilize MockK for unit testing services and managers
  5. 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 格式。

质量评分

95 /100
1 day ago 分析

信任信号

最近提交4 days ago
星标68
许可证MIT
状态
查看源代码