You can use tags in rspec by providing a key-value pair for description, context, or test, for example:
describe "A set of tests", :constraint => 'slow'
describe "Another set of tests", :focus => true
You can run any of these sets by doing:
rspec --tag constraint:slow
rspec --tag focus
source
share