Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Feature/cli support multiple reporters #2911

Conversation

iamdavidfrancis
Copy link
Contributor

Description

Adding the ability to pass multiple reporters using --format. You can specify the output files using --output.reporter

Sample I ran on my machine:
node ..\..\bruno-cli\bin\bru.js run --env Prod --output junit.xml --format junit --format html --format json --output.html html.html --output.json results.json

Console output:
image

All 3 files were written:
image

Contribution Checklist:

  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.

Related to #2045

@helloanoop
Copy link
Contributor

Thanks for taking the time to work on this @iamdavidfrancis !

I think we need to support a simpler cli args for multiple reporters.
I penned a proposal here: #2918

@iamdavidfrancis
Copy link
Contributor Author

@helloanoop I've pushed an update to use the schema mentioned in your discussion. Let me know if you have any thoughts.

@berlingoqc
Copy link

what needs to be done to get this merged?

@helloanoop
Copy link
Contributor

@lohxt1 Can you review this please ?

@helloanoop helloanoop merged commit 5e4a967 into usebruno:main Sep 16, 2024
2 checks passed
@helloanoop
Copy link
Contributor

Merged!
This will be available in upcoming v1.29.0 release

Its-treason pushed a commit to Its-treason/bruno that referenced this pull request Sep 16, 2024
* Support multiple reporters at once in the CLI

* Typos

* Better logging string after writing file

* Remove double blank line

* More double blank lines

* Switch reporter schema to one from discussion

* Typo

* Add comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants