-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
newman doesn't execute test scripts declared in script.src
field
#2071
Comments
src
fieldscript.src
field
Any update on if this will be addressed? I see |
I would love love love to be able to edit postman scripts outside of the postman app, as my postman collections/test/environments live within a github repo alongside other source-controlled code. I find it hard to believe the only way I can update my Postman scripts is editing from within Postman just so I can export it in order to overwrite the Am I missing something obvious or is there just no way to support editing tests in the text editor of your choice? I thought that would be an MVP kind of thing. Or is this feature not implemented because it kind of competes with the paid Workspaces? |
@manbradcalf have you found a way by chance or is this still DOA? |
No. I ended up migrating the tests that lived inside my Postman collections to a source-controlled node / mocha / chai / axios project. Node for the runtime |
Yah, that seems like a much better strategy. I was leaning in a similar direction myself. Too bad, postman/newman. 😞 |
Newman Version (can be found via
newman -v
):4.5.1
OS details (type, version, and architecture):
Official Docker image, alpine-based (postman/newman:4.5.1-alpine)
Are you using Newman as a library, or via the CLI?
CLI
Did you encounter this recently, or has this bug always been there:
This is the very first time I try to execute this
Expected behaviour:
Execute test scripts in external files, as well as embedded ones
Command / script used to run Newman:
collection.json
:test_script.js
:As you can see, no assertion is executed for call
HTTP GET with linked test script
, and the total count is 1:The text was updated successfully, but these errors were encountered: