Skip to content

Configurar y ejecutar tests en docker dev#39

Open
earhackerdem wants to merge 1 commit intofeature/docker-dev-setupfrom
cursor/configurar-y-ejecutar-tests-en-docker-dev-d0eb
Open

Configurar y ejecutar tests en docker dev#39
earhackerdem wants to merge 1 commit intofeature/docker-dev-setupfrom
cursor/configurar-y-ejecutar-tests-en-docker-dev-d0eb

Conversation

@earhackerdem
Copy link
Copy Markdown
Owner

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.testing file, and updated documentation to facilitate comprehensive testing within Docker containers.


Open Background Agent:

Web · Cursor

Refer to Background Agent docs

- 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants