Zum Hauptinhalt springen
Dieser Inhalt ist noch nicht in Ihrer Sprache verfügbar und wird auf Englisch angezeigt.

Testing Strategies

Skill Aktiv

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.

Zweck

To offer robust testing patterns and setup guidance for Micronaut/Kotlin backend development, ensuring code quality and coverage.

Funktionen

  • 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

Anwendungsfälle

  • Writing integration tests for Micronaut controllers
  • Setting up repository tests with a database
  • Improving test coverage with specific strategies
  • Establishing consistent test naming conventions

Nicht-Ziele

  • Providing general Kotlin or Java programming advice
  • Covering frontend testing frameworks
  • Automating test execution beyond standard build commands

Workflow

  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

Praktiken

  • 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.

Installation

npx skills add spartan-stratos/spartan-ai-toolkit

Führt das Vercel skills CLI (skills.sh) via npx aus — benötigt Node.js lokal und mindestens einen installierten skills-kompatiblen Agent (Claude Code, Cursor, Codex, …). Setzt voraus, dass das Repo dem agentskills.io-Format folgt.

Qualitätspunktzahl

95 /100
Analysiert about 15 hours ago

Vertrauenssignale

Letzter Commit3 days ago
Sterne68
LizenzMIT
Status
Quellcode ansehen