- Content of bitbucket-pipelines.yml: The above mentioned bitbucket-pipelines.yml has the commands that are to be run at the build. Here is an explanation to those commands:
- First of all, we have added the node image with the specified version.
- Then, we are mentioning node and vrunnercache as cache. This is done to save build time.
- Then, comes the scripts:
- 'node server.js' command deploys and starts the node.js application server.
- The next command is used to download the vrunner binary. In vrunner_linux_x_x_x, the 'x's are used to show the version of vrunner. It is recommended that you use the latest version of vrunner.
- Then, the downloaded vrunner binary is being given the executable permissions.
- Then, the vrunner command to run your vREST Test Cases and generate test reports is executed. (I am assuming that you have already created your vREST Test Cases by now)