Support auto-quarantining single-line examples and examples without a description

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

Problem

Currently, the automated quarantining of flaky tests only works for full it examples, e.g.

it 'example description' do
  expect { subject }.to be(true)
end

Single-line example such as #444694 (closed):

it { is_expected.to eq(secondary_node) }

And example without a description such as

it do
  expect { subject }.to be(true)
end

cannot be quarantined.

The problem is that even if we detect the two latter cases, we'll need to reformat them to a full it example, with a description (maybe '' would work as a description...).

Resources

  • https://rubular.com/r/z397llohWb97e3
Edited Aug 18, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading