kotlin-testing
Patrones de pruebas Kotlin con Kotest, MockK, pruebas de coroutines, pruebas basadas en propiedades y cobertura con Kover. Sigue la metodología TDD con prácticas idiomáticas de Kotlin.
Original · translation did not pass checksTarget: Software development & testing. Automatically collected · unverified.
Excerpt from the author’s documentation
Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.
Read the original text
Topics in the source
- Patrones de Pruebas Kotlin
- Cuándo Usar
- Cómo Funciona
- Ejemplos
- Referencia Rápida
- Flujo de Trabajo TDD para Kotlin
- El Ciclo ROJO-VERDE-REFACTORIZAR
- TDD Paso a Paso en Kotlin
Patrones completos de pruebas Kotlin para escribir pruebas confiables y mantenibles siguiendo la metodología TDD con Kotest y MockK. Escribir nuevas funciones o clases Kotlin Agregar cobertura de pruebas a código Kotlin existente Implementar pruebas basadas en propiedades Seguir el flujo de trabajo TDD en proyectos Kotlin Configurar Kover para cobertura de código 1. Identificar el código objetivo — Encontrar la función, clase o módulo a probar 2. Escribir un spec Kotest — Elegir un estilo de spec (StringSpec, FunSpec, BehaviorSpec) acorde al alcance de la prueba 3. Mockear dependencias — Usar MockK para aislar la unidad bajo prueba 4. Ejecutar pruebas (ROJO) — Verificar que la prueba falla con el error esperado 5. Implementar código (VERDE) — Escribir el código mínimo para pasar la prueba 6. Refactorizar — Mejorar la implementación manteniendo las pruebas en verde 7. Verificar cobertura — Ejecutar ./gradlew koverHtmlReport y verificar 80%+ de cobertura Las siguientes secciones contienen ejemplos detallados y ejecutables para cada patrón de prueba: Specs Kotest — Ejemplos de StringSpec, FunSpec, BehaviorSpec, DescribeSpec en Estilos de Spec Kotest Mocking — Configuración de MockK, m
This is an excerpt. Refer to the complete source and its current requirements.
- Source repository
- affaan-m/ECC
- Source file
- docs/es/skills/kotlin-testing/SKILL.md
- Fixed revision
- d2ef2680594f9a17526a6e1a2e18b3d242c5d17b
Sources and evidence
This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.
Author: affaan-m/ECC · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T14:01:48.779Z.
Categories are inferred from names, descriptions and paths. They do not establish compatibility.
License and attribution
MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.
Original license ↗Synchronization, copying and user-reported success do not mark a resource as runtime-tested.
Limitations and notes
- Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.