Skip to content

ADR-0016: Report formats, the always-English JUnit file, and exit codes ​

Status: Accepted

Context ​

The results are read by developers in a terminal, by reviewers and managers as documents, and by CI dashboards. These audiences need different formats. CI dashboards track tests by name over time, so names must not change with the language settings.

Decision ​

OutputContent
report_<locale>.mdOne Markdown report per active language
report.xmlJUnit XML, always English, regardless of languages
report.htmlOne file with all active languages embedded and a language switcher
Console textThe summary in the first active language, with the rule ID after error or warn
table_<locale>.mdOptional compact table report, written with --table

All files are written to ui5-blueprint-audit-report/. That folder is excluded from the file tree, so reports are not audited as project files (see ADR-0006).

Exit codes: 1 if at least one finding has the severity error. Findings with warn alone do not abort. Project errors, such as invalid config, also end with 1.

The tool runs through npx, as an npm script, and in pre-commit hooks.

Consequences ​

  • CI dashboards stay stable when the report languages change.
  • warn is a real middle level: visible in every report, but it does not fail a build.
  • A new report format needs an implementation per language where it applies, and a decision about its language rules.

Released under the MIT License.