Skip to content

RSpec: Configure `focus` in a single location `support/rspec`

Peter Leitzen requested to merge pl-spec-focus into master

What does this MR do and why?

Because support/rspec is loaded by all spec helpers we can define the focus configuration only once and delete other definitions. This makes the spec helpers a tad slimmer.

Contributes to #372849.

How to set up and validate locally

# Add :focus tag to a `describe`, `context` or `it`

bin/rspec <fast_spec>
bin/rspec <spec>


# It only runs the focused spec.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Peter Leitzen

Merge request reports