Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3978044
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T04:59:49+00:00 2026-05-20T04:59:49+00:00

I think there’s a way to run only tests with a given label. Anybody

  • 0

I think there’s a way to run only tests with a given label. Anybody know?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T04:59:50+00:00Added an answer on May 20, 2026 at 4:59 am

    You can tag examples with :focus hash attribute. For example,

    # spec/foo_spec.rb
    RSpec.describe Foo do
      it 'is never executed' do
        raise "never reached"
      end
    
      it 'runs this spec', focus: true do
        expect(1).to eq(1)
      end
    end
    
    rspec --tag focus spec/foo_spec.rb
    

    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 do

    where :awesome is 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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

did anybody know a good regex tester for javascript (i think there are differents
i think there may be option like launch url in ib can anybody answer
I think there is a shorter way of writing this foreach loop that creates
I think there is no way to set the lock screen wallpaper on the
You would think there would be a way using DirectCast, TryCast, CType etc but
I think there a easier way to perform the same function but without if
My boss seems to think there's a way to play audio files via a
I think there must be something subtle going on here that I don't know
I think there might be a way to partition this to find what I
I know there was an API for C#, but I don't think there is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.