rust-testing
Patrones de pruebas en Rust incluyendo pruebas unitarias, de integración, async, basadas en propiedades, mocking y cobertura. Sigue la metodología TDD.
Original · translation is not supported for this source languageTarget: 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 Rust
- Cuándo Usar
- Cómo Funciona
- Flujo de Trabajo TDD en Rust
- El Ciclo ROJO-VERDE-REFACTORIZAR
- TDD Paso a Paso en Rust
- Pruebas Unitarias
- Organización de Pruebas a Nivel de Módulo
Patrones completos de pruebas en Rust para escribir pruebas confiables y mantenibles siguiendo la metodología TDD. Escribir nuevas funciones, métodos o traits en Rust Agregar cobertura de pruebas a código existente Crear benchmarks para código con requisitos de rendimiento Implementar pruebas basadas en propiedades para validación de entrada Seguir el flujo de trabajo TDD en proyectos Rust 1. Identificar el código objetivo — Encontrar la función, trait o módulo a probar 2. Escribir una prueba — Usar #[test] en un módulo #[cfg(test)], rstest para pruebas parametrizadas, o proptest para pruebas basadas en propiedades 3. Mockear dependencias — Usar mockall para aislar la unidad bajo prueba 4. Ejecutar pruebas (ROJO) — Verificar que la prueba falla con el error esperado 5. Implementar (VERDE) — Escribir el código mínimo para que pase 6. Refactorizar — Mejorar mientras se mantienen las pruebas en verde 7. Verificar cobertura — Usar cargo-llvm-cov, objetivo 80%+ | Tipo de Código | Objetivo | |----------------|----------| | Lógica de negocio crítica | 100% | | API pública | 90%+ | | Código general | 80%+ | | Bindings generados / FFI | Excluir | HACER: Escribir pruebas PRIMERO (TDD) Usar m
This is an excerpt. Refer to the complete source and its current requirements.
- Source repository
- affaan-m/ECC
- Source file
- docs/es/skills/rust-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.836Z.
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.