Skip to content

Find coverage gaps with AI

A story can have scenarios and still leave some of its acceptance criteria untested. Coverage gaps reads each story’s acceptance criteria, compares them with the scenarios linked to the story, and lists what isn’t covered.

  1. Open Features > Traceability Matrix.
  2. Select Coverage gaps.
  3. Enter a JQL query for the issues to analyse, or leave it empty to use the Traceability Matrix’s query. For example: project = WEB AND fixVersion = "2.5" AND type = Story.
  4. Select Find coverage gaps.

The query is always limited to the current project, and up to 50 issues are analysed per request.

The AI analyses each issue and shows:

Column Shows
Issue and Summary The story
Linked scenarios How many scenarios are linked to it
Uncovered criteria Acceptance criteria no linked scenario tests, or All covered
Suggestion What scenario would close the gap

Use Export to download the result as a CSV file, for example to plan the work in a refinement session.

  1. In the issue’s row, select Fix with AI. The AI starts generating scenarios for the Uncovered criteria straight away.
  2. Check the Feature to add the scenarios to. It defaults to the feature the issue’s linked scenarios are in, or a New feature named after the issue.
  3. Review the generated scenarios: untick the ones you don’t want, and edit names or steps. Generate again if none fit.
  4. Select Add to the issue. The scenarios are added to the feature and linked to the issue.

You can also select Open issue and use Generate scenarios there.

To check a single story, select Check criteria coverage in its AssertThat BDD panel. Each acceptance criterion is marked covered or not, and Generate scenarios for the gaps writes the missing ones.

Acceptance criteria covered: 3 of 3 on a story

AssertThat reads the issue’s Acceptance Criteria field when your site has one, and the issue description otherwise. Clear, testable criteria in a list give the best results.