Convert your dbt test results into jUnit XML format so that CI/CD platforms (such as Jenkins, CircleCI, etc.) can better report on tests in their UI.
pip install dbt-junitxml
When you run your dbt test suite, the output is saved under target/run_results.json
. Run the following command
to parse your run results and output a jUnit XML formatted report named report.xml
.
dbt-junitxml parse target/run_results.json report.xml
Currently, only v4 of the Run Results specifications is supported.