A dbt companion CLI for reporting unit test executions to Jira X-Ray. It supports dbt unit tests that are written with native dbt Unit Tests or Equal Experts dbt_unit_testing tests.
To label a unit test for Jira X-ray execution, you must add a tag like the following to the test:
tags: ['key:JIRA-123']Likewise, you can label a group of tests with a plan: tag to group them into a shared test plan corresponding to a Jira Test Plan:
tags: ['key:JIRA-123', 'plan:JIRA-456']List all tests in the project with jira tags:
dbt-xray lsIdentify a specific test by Jira key:
dbt-xray ls --test-key JIRA-123
dbt-xray ls -k JIRA-123Identify multiple tests by Jira keys:
dbt-xray ls --test-key JIRA-123,JIRA-234,JIRA-345
dbt-xray ls -k JIRA-123,JIRA-234,JIRA-345Identify all tests in a test plan by Jira key:
dbt-xray ls --test-plan JIRA-456
dbt-xray ls -p JIRA-456Run all tests in the project with jira tags:
dbt-xray runRun a specific test by Jira key:
dbt-xray run --test-key JIRA-123
dbt-xray run -k JIRA-123Run multiple tests by Jira keys:
dbt-xray run --test-key JIRA-123,JIRA-234,JIRA-345
dbt-xray run -k JIRA-123,JIRA-234,JIRA-345Run all tests in a test plan by Jira key:
dbt-xray run --test-plan JIRA-456
dbt-xray run -p JIRA-456Run all tests in the project with jira tags, sequentially:
dbt-xray run --mode serial
dbt-xray run -m serialBy default, --mode bulk is supplied, which runs tests in parallel with the threads configured in the dbt profile.
- Implement missing API calls for Jira X-Ray
- Better tests
-
dbt-xray checkcommand to alert whether or not dbt test contents disagree with corresponding Jira tickets (check hash, maybe description and test details). -
dbt-xray synccommand to update Jira tickets with their corresponding dbt test contents (update hash, maybe description and test details). - Better dbt version compatibility for <1.8.0
Author:
- David Sillman dsillman2000@gmail.com