Step-by-step instructions to integrate TestDriver with Jira for automated test failure tracking in CI/CD workflows.
Run Tests with TestDriver CLI
Check for Test Failures
Create a Jira Ticket
TD_API_KEY
).JIRA_API_TOKEN
).https://yourcompany.atlassian.net
).TEST
)..github/workflows/testdriver-jira.yaml
--headless
flag. The --output
flag specifies where to save the test results for later use in Jira tickets.
failure=true
) to trigger the Jira ticket creation step and prepares the output file for the Jira ticket.
create-jira-ticket
job uses the atlassian/gajira-create
action to create a new Jira ticket. The ticket includes:
TD_API_KEY
: Your TestDriver API key.JIRA_API_TOKEN
: Your Jira API token.JIRA_BASE_URL
: Your Jira instance URL (for example, https://yourcompany.atlassian.net
).JIRA_USERNAME
: Your Jira account email.prerun
parameter from the GitHub Action and provide more comprehensive control over the test environment.
The main lifecycle files are:
lifecycle/provision.yaml
: Executed when a new sandbox is createdlifecycle/prerun.yaml
: Executed before tests run (replaces the old prerun
parameter)lifecycle/postrun.yaml
: Executed after tests completelifecycle/
directory and will be automatically executed by TestDriver during the
appropriate phases.TestDriver Test Failure in mycompany/myproject