usebruno / bruno

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

Multiple CLI Reporters #2918

Open helloanoop opened 2 weeks ago

helloanoop commented 2 weeks ago

Add support for multiple CLI Reporters.

As a user, I want my collection to produce multiple reports (json, HTML, JUnit)

Current API

# json report
bru run request.bru --output results.json

# junit report 
bru run request.bru --output results.xml --format junit

#  html report
bru run request.bru --output results.html --format html 

Proposed API

# json report
bru run request.bru --reporter-json results.json

# json and junit report
bru run request.bru --reporter-json results.json  --reporter-junit results.xml

Past Issues / Discussions

Related PRs

iamdavidfrancis commented 2 weeks ago

I think this it much cleaner than my implementation. I can push an update to my PR with this as the schema.