CI / CD

npx windup run --all --reporter junit --report-file reports/windup.xml
  • --all ejecuta cada escenario del directorio (un navegador caliente para toda la suite).
  • El código de salida es distinto de cero cuando cualquier escenario falla.
  • --concurrency <n> ejecuta escenarios en paralelo sobre un único navegador caliente compartido (~2× más rápido en una suite mixta); --browser firefox|webkit ejecuta la suite en modo multinavegador.
  • --reporter junit emite JUnit XML (GitHub Actions, GitLab y Jenkins lo consumen de forma nativa); --reporter json emite un resumen legible por máquina; --reporter html emite una página autocontenida y amigable para humanos (sin JS/dependencias — súbela como artefacto de CI o ábrela localmente). Salida por defecto: .windup/reports/.
  • windup costs --json reporta el gasto de IA para el seguimiento del pipeline.

Ejemplo: GitHub Actions

- run: npm ci && npx playwright install chromium
- run: npx windup run --all --base-url http://localhost:8080 --reporter junit --report-file reports/windup.xml
  env:
    GOOGLE_GENERATIVE_AI_API_KEY: ${{ secrets.GEMINI_KEY }}
- uses: dorny/test-reporter@v1
  if: always()
  with: { name: windup, path: reports/windup.xml, reporter: java-junit }