Configurar y ejecutar tests en docker dev#39
Open
earhackerdem wants to merge 1 commit intofeature/docker-dev-setupfrom
Open
Configurar y ejecutar tests en docker dev#39earhackerdem wants to merge 1 commit intofeature/docker-dev-setupfrom
earhackerdem wants to merge 1 commit intofeature/docker-dev-setupfrom
Conversation
- Agregar script principal run-tests-docker.sh para ejecutar tests desde fuera del contenedor - Agregar script interno docker/test-setup.sh para configuración y ejecución dentro del contenedor - Crear configuraciones específicas para Docker: * phpunit.docker.xml - PHPUnit optimizado para contenedores * vitest.docker.config.ts - Vitest con timeouts aumentados * cypress.docker.config.ts - Cypress con configuraciones para Docker - Agregar .env.testing con variables de entorno específicas para testing - Configurar base de datos SQLite automática para tests rápidos - Implementar gestión automática de dependencias y servidores - Agregar scripts npm específicos para Docker (test:docker:*) - Actualizar documentación con sección completa de testing en Docker - Crear DOCKER-TESTING.md con guía detallada Características implementadas: ✅ Configuración automática de entorno de testing ✅ Gestión de ciclo de vida de contenedores Docker ✅ Base de datos SQLite para tests rápidos ✅ Servidores temporales para tests E2E ✅ Reportes detallados con cobertura ✅ Limpieza automática al finalizar ✅ Soporte para backend, frontend y E2E tests ✅ Troubleshooting y debugging integrado Resuelve: Ejecutar suite completa de 138 tests en entorno Docker de desarrollo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enable the project's test suite to run correctly in the Docker development environment.
Existing tests passed locally but lacked the necessary configuration and orchestration to run within Docker containers. This PR introduces new shell scripts (
run-tests-docker.sh,docker/test-setup.sh), Docker-specific configurations for PHPUnit, Vitest, and Cypress, a dedicated.env.testingfile, and updated documentation to facilitate comprehensive testing within Docker containers.Open Background Agent:
Web · Cursor
Refer to Background Agent docs