feat: Feature/cli support multiple file
Description
Add the ability to run multiple folder or file together in the cli.
bru.js run [filenames ...]
...
bru.js run folder folder2 request.bru -r Run all requests in multiple files and/or folder
They run in order of the arguments
➜ ✗ bru.js run AGENT AGENT_2 AGENT_2/Get\ Agent.bru
Adding Folder AGENT
Adding Folder AGENT_2
Adding Request AGENT_2/Get Agent.bru
AGENT/Create Agent (getaddrinfo ENOTFOUND test.io)
AGENT/Get Agent (getaddrinfo ENOTFOUND test.io)
AGENT/Delete Agent (getaddrinfo ENOTFOUND test.io)
AGENT_2/Create Agent (getaddrinfo ENOTFOUND test.io)
AGENT_2/Get Agent (getaddrinfo ENOTFOUND test.io)
AGENT_2/Delete Agent (getaddrinfo ENOTFOUND test.io)
AGENT_2/Get Agent (getaddrinfo ENOTFOUND test.io)
Requests: 0 passed, 7 failed, 7 total
Tests: 0 passed, 0 total
Assertions: 0 passed, 0 total
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 added screenshots or gifs to help explain the change if applicable.
- [X] I have read the contribution guidelines.
- [X] Create an issue and link to the pull request.
Resolves #2955
When will this be merged?
@helloanoop Just a kind reminder to this PR - could you please give us an estimated time for merging this?
As a work-around I'm currently using a (temporary) folder with symlinks of a subset of calls I need to call together, but can't wait for this to land. :)
@lohit-bruno I was looking for this feature, a must have. When will this be merged in?
Please, finish this PR, we really need this!
Hey @berlingoqc
Thanks a lot for your work on this! Since the PR was quite old, there were too many conflicts to resolve directly. Building on your work, we've incorporated the changes here, and credited you as a co-author.
This will be part of our upcoming v2.6.0 release.