The goal of continuous integration and continuous delivery (CI/CD) is to deliver frequent software updates that provide value for users. At the same time, it’s important to maintain software quality. Running API tests automatically during the build process helps to ensure that every code change is ready for production.
The Postman CLI enables you to run your test collections and monitors as part of your CI/CD pipeline. Using the Postman CLI, you can run your tests and monitor their results every time there’s a push to your code repository. After the pipeline runs, you can view a detailed test report in Postman.
To run tests as part of the CI/CD pipeline, first create a Postman Collection with the tests you want to run. Then use Postman to generate a code snippet you can include in your CI/CD pipeline configuration. The Postman CLI runs your test collection and monitor each time your pipeline runs.
To configure your CI/CD pipeline to run a test collection, do the following:
Learn more at Run a collection in CI/CD.
To configure your CI/CD pipeline to run a monitor, do the following:
Learn more at Run a monitor in CI/CD.
After configuration, Postman runs your tests as part of your CI/CD pipeline. Results display on the command line and show the number of tests that passed and failed. You can also view the results of CLI runs in Postman.
To view the results of a Postman CLI test run, do the following:
Learn more at View past runs.
To view the results of a Postman CLI monitor run, click Monitors in the sidebar, then select the monitor you want to view results for.
Learn more at View monitor results.
Last modified: 2025/06/25