Is there any way to create a HTML report on CI/CD pipeline while run the collection using “postman collection run”
newman run have option to generate the HTML report but can we create the same newman html report while run postman collection run “path/api.collection.json”
Hey @hemanshurana1984
Welcome to the Postman Community
The Postman CLI doesn’t currently have the ability to create custom reports.
@danny-dainton Thank you for reply. Should i expect that capability will add in future?
There is an open feature request for this on the GitHub tracker:
opened 12:12PM - 26 Sep 22 UTC
feature
product/runtime
postman-cli
### Is there an existing request for this feature?
- [X] I have searched the ex… isting issues for this feature request and I know that duplicates will be closed
### Is your feature request related to a problem?
Newman allows the use of custom reporters for example [htmlextra](https://www.npmjs.com/package/newman-reporter-htmlextra) .
My understanding is that the new CLI in Postman v10 does not allow the use of these reporters.
### Describe the solution you'd like
The ability to use custom reporters, like htmlextra with the new v10 CLI.
### Describe alternatives you've considered
_No response_
### Additional context
_No response_
system
(system)
Closed
August 15, 2024, 9:33pm
5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
Hey @hemanshurana1984 .
Thank you for the feedback! I’m happy to share that the Postman CLI now supports built in reporters!
You can export run results as json, html, JUnit or on the CLI. Simply run:
postman collection run <collection-id> -r <reporter>
For example, printing on the CLI and exporting run results as HTML, i will run the following:
postman collection run <collection-id> -r cli,html
Read more about this feature here
We’re eager to see how you use this feature. Please try it out and share any feedback you have with us! We’ll love to hear from you!