Support auto-quarantining single-line examples and examples without a description
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
Edited by Rémy Coutable