-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feature(postman_tests_scripts): automatic tests and scripts translation from postman import #1151
feature(postman_tests_scripts): automatic tests and scripts translation from postman import #1151
Conversation
…on from postman import
Merging changes from 1.5.1
This PR is now ready @helloanoop 🎉 |
What a merge man !
What a crazy merge
… input and dropdown menu added (zinc color)
…postmanTranslation function
…or import dialog options
how to test this? |
Import a postman collection into Bruno, the collection must have postman commands in scripts and/or tests. By default scripts are inside a comment, when you enable the translation it converts pm.environment.get() to bru.getEnvVar() |
how can i enable this in bruno ? Because when i import collection from Postman i d'ont have this option (Enable postman translation ] |
Are you on the right branch ? There should be a checkbox in the import dialog before choosing "Postman collection" |
i downloaded zip file from your branch but don't know how to try it |
You have to clone the Bruno repository, switch to the branch feature/postman_tests_scripts, install the dependencies, follow the readme manual and launch the project locally on your machine |
@helloanoop : After this PR was merged, the main branch no longer builds for me. My steps are:
Result:
|
Can you try running npm i @tailwindcss/forms ? |
Yep, that fixes it. |
Hello @bpoulaindev, Could we go one step further, having more replacements, like :
I observed that set commands are not replaced if expression contains a . ?
could be replaced by :
|
Hi @BBE-91 thanks for the suggestions;
|
Thanks for the PR, I also see this one : #1909 |
can pm.collectionVariables get/set be added also? that and @BBE-91 suggestions would increase the coverage of the translation a lot :) |
Description
Regarding issue #1147
Previous postman script import result :
Translated postman script import result :
Translations are made using a regex, with a separated typescript function
Non-translatable postman code will be still returned as comments
Contribution Checklist:
Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.
Publishing to New Package Managers
Please see here for more information.