Azure / Azure/data-api-builder

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

Offen
#2,923 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
2.2
Vorherrschende Sprache
C#
Sterne
1.5k
Forks
370
Ø Merge
3 T. 22 Std.
Gemergte PRs (30 T.)
9

Beschreibung

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'.




```

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne mit dem Befehl `dab validate` und dem bestehenden Pfad für die Validierungsausgabe. Lege fest, wie die Option `-output:results.xml` Validierungsergebnisse der angeforderten JUnit-XML-Struktur zuordnet, wobei die Konsolenausgabe erhalten bleibt; fertig ist es, wenn CI/CD-Tools die erzeugte Datei nutzen können.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
csharp
Bereich
cli, testing
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.