Open nilvon9wo opened 1 year ago
I thought about trying to make a PR to do something like this, but I won't pretend my JavaScript is good enough to figure out how your solution is working, so I can't modify it.
Instead, since this isn't getting any response, I'm working on a wrapper ( https://github.com/nilvon9wo/impendingman ) which will allow users to do translate a collection.template.json and run it in newman.
Ideally, I'd like to make newman a direct dependency instead of going through the shell, but I couldn't figure out how to turn command line arguments into NewmanOptions, or if that is even necessary or the best way to do this....
If anyone here is interested in helping with this solution, I'm all eyeballs.
In case anyone is interested in actually using this tool, it is now on npm: https://www.npmjs.com/package/impendingman?activeTab=readme
... Alas, I still haven't figured out how to integrate newman directly instead of going through the shell....
This isn't so much an issue with Newman as not finding Postman to be an ideal JavaScript editor, yet finding it worse to edit .json collection files in something else.
In an idea solution, when Newman files a string instead of an array as the value of
exec
, Newman would check if this is a file path and whether a file can be found at this location. If so, it would run it.So, for example, instead of:
I could have