Sources
Resumen Completo para Podcast: CI/CD + Postman Collections 🚀 ¿Qué es CI/CD? CI (Continuous Integration): integrar cambios frecuentemente (código, pruebas, etc.) CD (Continuous Delivery/Deployment): automatizar la entrega del software CI/CD = confianza, agilidad y menos errores en releases 🧪 ¿Qué es Newman? Newman es el CLI (Command Line Interface) de Postman Permite ejecutar colecciones de pruebas Postman desde la línea de comandos o en pipelines Comando básico: bash Copiar Editar newman run MyCollection.json -e MyEnv.json 🔧 ¿Cómo se integra Postman en pipelines? Guarda tu colección como .json Guarda tu ambiente (.json) con variables necesarias Instala Newman (npm install -g newman) Agrega al pipeline (GitLab, Jenkins, Azure DevOps, GitHub Actions, etc.) Ejemplo en GitLab CI: yaml Copiar Editar test_api: stage: test image: node:latest script: - npm install -g newman - newman run MyCollection.json -e MyEnv.json 📦 ¿Por qué es útil? Corre pruebas automáticamente en cada commit Detecta errores tempranamente Asegura que los endpoints sigan funcionando 💡 Consejos clave No mezcles pruebas manuales y automáticas Usa variables ({{base_url}}, {{token}}, etc.) Exporta bien las colecciones (sin credenciales hardcoded) Usa reportes HTML para revisar resultados bash Copiar Editar newman run MyCollection.json -r cli,html
Podcast Editor
Podcast.json
Preview
Audio
