Currently, running make test invokes newman with a predefined, Pack-specific path:
newman run "$(DIR_PACKS)/$(strip $(pack))/tests/newman.json" \
While this works for a file-system based Postman Collection, it makes it more cumbersome to collaborate with other contributors to a Postman Collection, as the process currently is:
1.) Update Postman Collection
2.) Export Postman Collection to packs/<Pack name>/tests/newman.json
3.) Commit new / changed file
By adding support for URL, and defining a check (if URL is set, default to that, else use file-system, with an override of e.g. POSTMAN_LOCAL_ONLY), we can depend on Postman Collections that are stored remotely.
Currently, running
make testinvokesnewmanwith a predefined, Pack-specific path:While this works for a file-system based Postman Collection, it makes it more cumbersome to collaborate with other contributors to a Postman Collection, as the process currently is:
1.) Update Postman Collection
2.) Export Postman Collection to
packs/<Pack name>/tests/newman.json3.) Commit new / changed file
By adding support for URL, and defining a check (if URL is set, default to that, else use file-system, with an override of e.g.
POSTMAN_LOCAL_ONLY), we can depend on Postman Collections that are stored remotely.