Understanding the Newman concept
So far in this chapter, we have talked about using Postman locally to test the APIs that we develop or consume. But what is important in the unit, acceptance, and integration tests is that they are automated so that they can be executed within a CI/CD pipeline.
Postman, as such, is a graphical tool that does not automate itself, but there is another tool called Newman that automates tests that are written in Postman.
Note
We can also use another tool called Postman Sandbox to run the Postman API in Node.js or a browser. For more information, read the GitHub repository here: https://github.com/postmanlabs/postman-sandbox.
Newman is a free command-line tool that has the great advantage of automating tests that are already written in Postman. It allows us to integrate API test execution in CI/CD scripts or processes.
In addition, it offers the possibility of generating the test results of reports of different formats (HTML, JUnit, and JSON...