Hi everyone! I was wondering, since this is my first time using appveyor, how does one incorporate a postman collection into an appveyor.yml file?
@zbaker_apex This can be done quite easily by using newman
as a CLI tool and the following AppVeyor config:
#---------------------------------#
# environment configuration #
#---------------------------------#
# scripts that are called at very beginning, before repo cloning
init:
- git config --global core.autocrlf input
# environment variables
environment:
matrix:
- nodejs_version: "10"
# scripts that run after cloning repository
install:
- ps: Install-Product node $env:nodejs_version
- npm cache clean --force
- appveyor-retry npm install -g newman
build: off # Disable MSBuilds, not related to the regular build process
# to run your custom scripts instead of automatic tests
test_script:
- node --version && npm --version
- cmd: "newman run ..." # ADD YOUR OPTIONS HERE
# to disable deployment
deploy: off
Thank you! I really appreciate the help!
This communication, including all attachments, may contain information that is considered to be of a highly confidential, proprietary, and/or privileged nature. It may not be used, copied, stored, or disseminated in any form, to any source, except in the manner that it was explicitly intended. If you are not the intended recipient, please notify the sender immediately, and then delete all copies completely from your system.