test: Sprint test-3 lite — 3 tests E2E con shinytest2#66
Merged
Conversation
Versión recortada del Sprint test-3 (scope inicial 5-7 tests + Codecov) con foco en cubrir el smoke y la regresión del toggle Tipo de dúo. ROI suficiente para el costo de mantenimiento de E2E. Tests cubiertos: - smoke: app levanta y registra el input tipo_duo con default "trimestral". - toggle Tipo de dúo: cambiar trimestral ↔ anual se refleja en el reactive state via input. Cubre regresión #44. - módulo Calidad: tras navegar al nav_panel, el output kpi_encontrado renderiza un valor numérico válido (forma "X.X%" o "—"). Infraestructura: - Workflow tests-e2e.yml separado con workflow_dispatch + cron semanal (domingo 06:00 UTC). NO corre en cada PR. tests-unit.yml sigue siendo la barrera obligatoria. - Guard RUN_E2E=true env var: la suite default (Rscript tests/testthat.R) salta los E2E manteniéndose rápida (~30s vs +3min). - Helper new_app() encapsula AppDriver$new + skips defensivos (paquetes ausentes, datasets faltantes, env var). Diferidos a futuro (documentados en ROADMAP): - E2E de descarga (quirk de Chromote con downloadHandler que copia archivos vía file.copy). - Codecov. - E2E de regresión #40 line charts (requiere snapshot testing). Suite total: 192 tests (185 unit + 7 E2E con RUN_E2E=true). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
Sprint test-3 versión recortada (vs scope original de 5-7 tests + Codecov), con foco en cubrir el smoke + regresión del toggle Tipo de dúo + render de output post-navegación. ROI suficiente para el costo de mantenimiento de E2E.
3 tests E2E (7 expects):
smoke: app levanta y registrainput\$tipo_duocon default "trimestral".toggle Tipo de dúo: cambiar trimestral ↔ anual se refleja en el reactive state. Cubre regresión Tipo de dúo: alternar entre intertrimestral e interanual en todos los análisis #44.módulo Calidad: tras navegar al nav_panel,output\$kpi_encontradorenderiza valor válido.Infra:
tests-e2e.ymlseparado conworkflow_dispatch+ cron semanal (domingo 06:00 UTC). NO corre en cada PR.RUN_E2E=true: suite default rápida (skip de E2E).new_app()con skips defensivos.Diferidos a futuro:
Suite total: 192 tests (185 unit + 7 E2E con
RUN_E2E=true).Test plan
Rscript tests/testthat.R→ 185 PASS + 3 SKIP).RUN_E2E=true Rscript tests/testthat.R→ 192 PASS).🤖 Generated with Claude Code