← API Testing with Postman learning path
API Testing with Postman · Module 8 of 10

Newman and CI automation

Run Postman collections from the command line and CI.

📖 Key ideas

  1. Newman is Postman's command-line collection runner.
  2. Install: npm install -g newman.
  3. Run: newman run collection.json -e env.json.
  4. Generate reports with htmlextra reporter.
  5. Run in GitHub Actions/Jenkins on every deploy.
💡 Real-life example: Newman is Postman without the screen: it runs your tests on a server at night.
NewmanCLI runner for Postman collections
ReporterOutput format for results
Exit codeNon-zero if tests fail
Postman CLIOfficial CLI from Postman