Skip to content

Instantly share code, notes, and snippets.

@safebear
Last active September 12, 2019 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save safebear/ad48825dbd58cdc9584ec7c1c01bd44f to your computer and use it in GitHub Desktop.
Save safebear/ad48825dbd58cdc9584ec7c1c01bd44f to your computer and use it in GitHub Desktop.
azure pipeline with newman
- task: NodeTool@0
displayName: 'Run API Tests'
inputs:
versionSpec: '8.x'
- script: npm install newman -g
displayName: 'Install newman'
- script: newman run "$(System.DefaultWorkingDirectory)\ToolsList.AcceptanceTests\New Tool.postman_collection.json" -e "$(System.DefaultWorkingDirectory)\ToolsList.AcceptanceTests\ToolsList.postman_environment.json"
displayName: 'Run postman script'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment