← API Testing with Postman learning pathAPI Testing with Postman · Module 8 of 10
Newman and CI automation
Run Postman collections from the command line and CI.
📖 Key ideas
- Newman is Postman's command-line collection runner.
- Install: npm install -g newman.
- Run: newman run collection.json -e env.json.
- Generate reports with htmlextra reporter.
- 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