bruno
bruno copied to clipboard
[Feature Request] support recursive traversal for `.bru` files
At the moment Bruno expect to have a folder where every route is.
In our project we don't group by kind of file (eg: docs, controller, model, hook, view) but by context. The idea is to co-locate .bru files with other sources, like the HTTP route that define the endpoint.
Another point is, when using VSCode, we can use capture patterns and group .bru files with other sources:
└── MyUseCase
├── MyEndpoint.ts
├── MyEndpoint.bru
├── MyEndpoint.md
└── MyEndpoint.spec.ts
Traversing recursively the collection folder, would unlock this possibility being backward compatible with old version.
Hmm.. Interesting. approach !
The UI already traverses and only displays .bru files. Technically you should be able to open your source code repo in Bruno and it would automatically list all the requests in yor code. Have you tried that ?
Didn't know that, thank you for letting me now. This is already in the right direction!
What we personally don't like is that we have the explorer all the folders even if they're unrelated to the Bruno collection creating a lot of noise.
Given the configuration file (bruno.json) and the need to open it in the client, I was thinking to support a relative path to the configuration file where Bruno should read the collection and display only requests. If not present then should use the cwd (like how it already works).
Same requirement for me. Any news on it?