Integrating Newman into CI builds
Running your collection via the command line with Newman can help you quickly and easily run tests locally, but the real power of it comes in being able to automatically kick off and schedule runs. Many software companies now use CI systems that automate how builds and tests are continuously run every time a change is made to the code. Newman allows you to easily integrate into these CI build systems. This section will walk you through some general principles of using Newman in CI systems. I will then show you a specific example of applying those principles to integrate Newman into a Travis CI build.
General principles for using Newman in CI builds
There are many different CI systems and integrating with each one requires knowledge about how that system works. In broad terms, though, there are a few things you will need to do, regardless of the system you are working with:
- You will need to make sure the build system has access to the...