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

[Feature Request] HTML test report format #1659

Open
trusta opened this issue Feb 24, 2024 · 5 comments
Open

[Feature Request] HTML test report format #1659

trusta opened this issue Feb 24, 2024 · 5 comments

Comments

@trusta
Copy link
Contributor

trusta commented Feb 24, 2024

Hi,

It would be a good idea to implement HTML report generation for tests run in CLI for existing CI/CD pipelines that rely on Newman runner for postman collections with: https://github.com/DannyDainton/newman-reporter-htmlextra

I made a first version :
image
image
image
image
image

trusta added a commit to trusta/bruno that referenced this issue Feb 24, 2024
trusta added a commit to trusta/bruno that referenced this issue Feb 27, 2024
@tlaloc911
Copy link
Contributor

This report is really great!! thank you

I tuned a version for my particular needs in order to being able to share testing results with more people in my team:

  1. Include a beautified version of the response.
  2. Mask the Authorization element from request header.

I don't think it is a good idea to start including so many variations of the report in the project. It would be nice to include the posibility to use custom filters and templates in htnl report. What do you think?

@amaillet2024
Copy link

As a user of htmlextra report from newman, this report is very promising. We also use le console display in this report, realy useful but option to remove some part (headers for me) would be nice too
thanks for this contribution

@trusta
Copy link
Contributor Author

trusta commented Mar 16, 2024

@tlaloc911 @amaillet2024 I made a new PR (#1828) to manage sensitive data with cli args (like https://www.npmjs.com/package/newman-reporter-htmlextra) :

--reporter-html-template: Specify a path to the custom template which will be used to render the HTML report.
--reporter-html-title: Give your report a different main Title in the centre of the report. If this is not set, the report will show "Bruno run dashboard"
--reporter-omitRequestBodies: Exclude all Request Bodies from the final report
--reporter-omitResponseBodies: Exclude all Response Bodies from the final report
--reporter-hideRequestBody: Exclude certain Request Bodies from the final report. Enter the minimatch pattern for the suitename you wish to hide
--reporter-hideResponseBody: Exclude certain Response Bodies from the final report. Enter the minimatch pattern for the suitename you wish to hide
--reporter-omitHeaders: Exclude all Headers from the final report
--reporter-skipHeaders: Exclude the given Headers from the final report. Enter the header names you wish to redact
--reporter-skipSensitiveData: Exclude all the Request/Response Headers and the Request/Response bodies, from each request in the final report. This will only show the main request info and the Test Results.

I think all these options will allow you to share reports as you wish :)

Don't hesitate to comment if you have any other ideas.

trusta added a commit to trusta/bruno that referenced this issue Mar 16, 2024
@tlaloc911
Copy link
Contributor

It is great!, thank you so much @trusta

trusta pushed a commit to trusta/bruno that referenced this issue Mar 18, 2024
trusta pushed a commit to trusta/bruno that referenced this issue Mar 18, 2024
trusta added a commit to trusta/bruno that referenced this issue Apr 15, 2024
trusta pushed a commit to trusta/bruno that referenced this issue Apr 15, 2024
trusta added a commit to trusta/bruno that referenced this issue Apr 17, 2024
trusta pushed a commit to trusta/bruno that referenced this issue Apr 17, 2024
@akhot09
Copy link

akhot09 commented May 3, 2024

I am just into something similar like this - i have shifted from Postman to Bruno, and looking forward to check whether we can use htmlextra reporter command as we use in newman while running postman collections. If so, can anyone please help me with CLI arguments for bruno how we can use the same htmlextra reporter with bruno.

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

No branches or pull requests

4 participants