diff --git a/Jenkinsfile b/Jenkinsfile index e85ded5c..8a9ff51e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -502,9 +502,16 @@ pipeline { echo "✓ Playwright listo" # ── Correr tests ──────────────────────────────────────────────── + # --reporter=list,junit,html: + # - list → progreso por test a stdout (visible en Jenkins) + # - junit → archivo XML para junit() plugin + # - html → carpeta playwright-report con UI + # stdbuf -oL fuerza buffer por líneas para que Jenkins vea el output + # incremental aunque pnpm/playwright bufferen. E2E_EXIT=0 docker exec \ -e CI=true \ + -e FORCE_COLOR=0 \ -e "JENKINS_URL=${JENKINS_URL}" \ -e "PLAYWRIGHT_TEST_BASE_URL=http://localhost:5173" \ -e "E2E_TEST_USER=${E2E_USER}" \ @@ -512,8 +519,8 @@ pipeline { -e "PLAYWRIGHT_JUNIT_OUTPUT_NAME=playwright-results.xml" \ -w /workspace/frontend \ "$PLAYWRIGHT_C" \ - pnpm exec playwright test \ - --reporter=junit,html \ + stdbuf -oL -eL pnpm exec playwright test \ + --reporter=list,junit,html \ --trace=retain-on-failure || E2E_EXIT=$? # Copiar artefactos antes de salir (pase o falle)