usebruno / bruno

Opensource IDE For Exploring and Testing Api's (lightweight alternative to postman/insomnia)
https://www.usebruno.com/
MIT License
26.7k stars 1.23k forks source link

Bruno CLI output format #1307

Closed pisix closed 3 months ago

pisix commented 10 months ago

Discussed in https://github.com/usebruno/bruno/discussions/1068

Originally posted by **eddimcbenz** November 27, 2023 I just switched from Postman to Bruno, because Bruno looks very promissing. By the way, you all are doing a great job! But now I came to a point where I have no adequate solution with Bruno. I use Bruno CLI with Jenkins like I used Postman newman with Jenkins in the passed. This works till now really good. But the output format of the json file that is produced by Bruno CLI is not working with Jenkins in the way I used to have it integrated with Postmans newman CLI. With newman, there was the possibility to have a second reporter that created junit files. Are different reporters maybe planned to be integrated into Bruno CLI, or does somebody have an idea how to get the json format of the output file transformed to a junit format? Thank you in advance for help and an answer. Eddi
awinder commented 10 months ago

Make sure you upgrade to the latest version of bruno (npm update -g @usebruno/cli if you've already installed, npm install -g @usebruno/cli if a new install). You should be able to use the --format flag in the cli:

bru run --output results.xml --format junit bru run --help # to see more options

confirm that bru --version is > 1.3.0 if you're still not seeing the junit format option

sanjai0py commented 3 months ago

I have closed this issue as resolved!