mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-30 16:14:06 +00:00
* feat: add translations for direct cookie access methods - Implement translations for pm.cookies.has, pm.cookies.get, and pm.cookies.toObject to their corresponding bru.cookies methods. - Enhance the postman-to-bruno translator to handle these new cookie access patterns. - Add unit tests to verify the correct conversion of cookie access methods in various scenarios. * refactor: simplify optional member expression handling in postman-to-bruno translator - Streamlined the code for handling optional member expressions in the translation of cookie access methods. - Updated unit test to verify the correct output format for pm.cookies.toObject() conversion. * refactor: enhance handling of await expressions in cookie translations - Updated the postman-to-bruno translator to wrap await expressions in parentheses for improved clarity and consistency. - Adjusted unit tests to reflect the new output format for cookie access methods, ensuring accurate translation of pm.cookies.get calls. * refactor: update cookie access translations to use hasCookie method - Modified translations for pm.cookies.has to utilize the new bru.cookies.hasCookie method for improved clarity and functionality. - Updated related unit tests to reflect changes in expected output for cookie existence checks. - Added new tests to validate the behavior of the hasCookie method in various scenarios.
bruno-tests
This package is used to test the Bruno CLI.
We have a collection that sits in the collection directory.
Test Server
This will start the server on port 80 which exposes endpoints that the collection will hit.
# install node dependencies
npm install
# start server
npm start
Run Bru CLI on Collection
cd collection
# run collection against local server
node ../../bruno-cli/bin/bru.js run --env Local --output junit.xml --format junit
# run collection against prod server hosted at https://testbench.usebruno.com
node ../../bruno-cli/bin/bru.js run --env Prod --output junit.xml --format junit