Skip to content

Instantly share code, notes, and snippets.

View darrylkuhn's full-sized avatar

Darryl Kuhn darrylkuhn

View GitHub Profile
@darrylkuhn
darrylkuhn / run-folder.sh
Created May 1, 2017 15:59
This small bash script allows newman users to run multiple newman commands and chain the results together. Requires newman 3.5.2 or later (I think)
#!/bin/sh
# Example run-folder.sh env.json collection.json "My Folder"
echo "Generating Temporary Environment"
newman run "${2}" --environment "${1}" --silent --export-env /tmp/temp-newman-env.json --folder "Fixtures"
newman run "${2}" --environment /tmp/temp-newman-env.json --bail --reporters cli --folder "${3}"