bruno
bruno copied to clipboard
[Feature] : Settings on folder level
Description
Referencing issue #1310
Add settings at the folder level similarly to collection settings
- multiple settings tab can be opened
- only headers have been added in those settings
- headers var with the same name as one from the parent will override the parent's one in the request
Contribution Checklist:
- [x] The pull request only addresses one issue or adds one feature.
- [x] The pull request does not introduce any breaking changes
- [x] I have read the contribution guidelines.
- [x] Create an issue and link to the pull request.
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.
It would be nice to have body and tests also..
@fulvio-diller Yeah i'll add those once headers are validated and officially stable
A thought from a design perspective: Should the concept of "Folders" be removed and should "Collections" be able to be nested? I'm not sure if that has already been discussed but it seems like that is the desired functionality as expressed in #1174 & #1310
Personally, my team would greatly benefit from being able to nest Collections to run a hierarchy of tests. So much so, that if we had that functionality, we would swap from Postman to Bruno immediately.
Hi @kyleboe,
I do not think that nesting collections is a good idea for several reasons:
- How should bru.setNextRequest() implement a jump between nested collection?
- What is the meaning of environments? Currently environments are stored at collection level. If a collection is nested there might exist environments too. To be able to run separately (standalone) environments must exist. On the other hand the values in the nested collection might be different from the values in the outer collection.
- Currently it is not possible to move/copy a request from one collection to another collection.
To my understanding the concept of folder exist to create hierarchical tests. Therefore I want to be able to store scripts, tests ... at folder level.
Kind Regards Thomas
Merged to feat/folder-level-settings branch where I will be continue further work on this.