I think there’s a way to run only tests with a given label. Anybody know?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can tag examples with
:focushash attribute. For example,More info on GitHub. (anyone with a better link, please advise)
(update)
RSpec is now superbly documented on relishapp.com. See the –tag option section for details.
As of v2.6 this kind of tag can be expressed even more simply by including the configuration option
treat_symbols_as_metadata_keys_with_true_values, which allows you to do:describe "Awesome feature", :awesome dowhere
:awesomeis treated as if it were:awesome => true.Also, see this answer for how to configure RSpec to automatically run ‘focused’ tests. This works especially well with Guard.