Azure / Azure/data-api-builder

[Enh]: `dab validate` Output to File for CICD

オープン
#2,923 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
2.2
主要言語
C#
スター
1.5k
フォーク
370
平均マージ
3日 22時間
マージ済み PR(30日)
9

説明

The flag `dab validate -output:results.xml` extends `dab validate` to support outputting the validation results in a **machine-readable XML format** useful for CI/CD pipelines. This allows for automated validation of configuration files, where any validation errors will be written to the specified XML file for further processing or reporting just like unit test. It's okay to still output to the console.

**Sample file**

The **JUnit XML** format is widely used for reporting test results and is supported by most CI/CD tools (Jenkins, GitLab CI, Azure DevOps, etc.). You can find the JUnit XML schema reference and examples at the following link: [JUnit XML Format](https://llg.cubic.org/docs/junit/).

```xml




The data-source section is missing the required 'connection-string' field.




The entities array in the configuration is empty. Please define at least one entity.




The value 'abc' for runtime/host/mode is invalid. Expected values are 'development', 'production', or 'staging'.




```

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

`dab validate` コマンドと既存の検証出力パスから始めます。`-output:results.xml` オプションが検証結果を要求された JUnit XML 構造にどのようにマッピングするかを定義し、コンソール出力は維持します。完了条件は CI/CD ツールが生成されたファイルを利用できることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
csharp
領域
cli, testing
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。