Files
bruno/packages/bruno-tests
sanish-bruno 3d319855bc feat: enhance hook functionality with runSingleRequestByPathname
- Introduced runSingleRequestByPathname to allow running requests at the collection level.
- Updated executeCollectionHooks to utilize the new function for improved hook execution.
- Added comprehensive tests for bru.runRequest in various hook scenarios, ensuring correct behavior and response handling.
- Removed redundant code and optimized hook management in collection.js.
2026-01-28 19:13:57 +05:30
..
2024-01-29 13:34:55 +05:30
2025-09-07 23:06:44 +05:30
2024-01-29 13:36:45 +05:30

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

License

MIT