0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Bruno】CLIでReportを生成する方法

Posted at

基本的なレポート生成

JSON形式

プログラムによる処理や分析に適している形式です。

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

JUnit形式

JUnitレポートに依存するCI/CDパイプラインとの統合に最適な形式です。

bru run request.bru --reporter-junit results.xml

HTML形式

人間が読みやすい視覚的なレポート形式です。

bru run request.bru --reporter-html results.html

複数レポートの同時生成

最も便利な機能の一つが、複数形式のレポートを同時に生成できることです。

bru run request.bru --reporter-json results.json --reporter-junit results.xml --reporter-html results.html

この一つのコマンドで、3つの異なる形式のレポートが同時に生成されます。

ヘッダー情報の制御

セキュリティ上の理由で、特定のヘッダー情報をレポートから除外したい場合があります。

特定ヘッダーをスキップ

bru run --reporter-html results.html --reporter-skip-headers "Authorization" "X-Auth-Token"

全ヘッダーをスキップ

bru run --reporter-html results.html --reporter-skip-all-headers

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?