Collection Organization and Structure
Intermediatev1.0.0
Design Bruno API collections with logical folder structure, naming conventions, and request ordering for maintainable, team-friendly API test suites.
Content
Overview
A well-organized Bruno collection mirrors your API structure — grouped by domain, named clearly, and ordered for logical test flow. Good organization makes collections navigable, maintainable, and suitable for CI execution.
How It Works
Folder Structure
Request File Anatomy (Bru Format)
Environment File
Best Practices
- -Group by API domain (Auth, Users, Products) not by HTTP method
- -Use clear request names: "Create Product" not "POST /products"
- -Order requests logically: Create → Read → Update → Delete
- -Use
seqin meta to control execution order in CI runner - -Include both success and error test cases per endpoint
- -Keep one request per file for clear version control diffs
Common Mistakes
- -Flat collection with all requests at root level (unnavigable at scale)
- -Naming by method: "POST Request 1" instead of descriptive names
- -Not including error case tests (only testing happy paths)
- -Not using environments (hardcoded URLs and tokens)
FAQ
Discussion
Loading comments...