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

  • SEARCH
  • Home
  • 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 7690397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:23:11+00:00 2026-05-31T20:23:11+00:00

I am using Ruby on Rails 3.2.2 and Cucumber with the cucumber-rails gem. I

  • 0

I am using Ruby on Rails 3.2.2 and Cucumber with the cucumber-rails gem. I would like to know what Cucumber tags are commonly used throughout an application or at least on what criteria I should think about those so to make tags “efficient”/”useful”. More, I would like to know “how”/”in which ways” I “could”/”should” use Cucumber tags.

  • 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-31T20:23:12+00:00Added an answer on May 31, 2026 at 8:23 pm

    Tags are most commonly used to select or exclude certain tests from running. Your particular situation will dictate what ‘groups’ of tests are useful to run or not run for a particular test run, but some common examples could be:

    • @slow – indicates a test that takes a long time to run, you might want to exclude this from most test runs and only run it on an overnight build so that developers don’t have to wait for it every time.
    • @wip – indicates that this test exercises unfinished functionality, so it would be expected to fail while the feature is in development (and when it’s done, the @wip tag would be removed). This has special significance in Cucumber as it will return a non-zero exit code if any @wip tests actually pass
    • @release_x, @sprint_y, @version_z etc. Many teams tag each test with information about which release/sprint/version contains it, so that they can run a minimal suite of tests during development. Generally the same as the @wip tag except that they stay attached to the test so they always know when a particular feature was introduced.
    • @payments, @search, @seo etc. Basically any logical grouping of tests that isn’t already expressed by the organisation of your feature files. Commonly used when a test relates to a cross-cutting concern, or when your project is divided into components along different lines to your feature files.

    Tags are also used to fire hooks – bits of code which can run before, after, or ‘around’ tests with particular tags. Some examples of this are:

    • @javascript – indicates that a test needs Javascript support, so the hook can switch from an HTTP-only driver to one with JS support. Capybara goes one step further by automatically switching to a driver named after the tag, if one is found (so you could use e.g. @desktop, @mobile, @tablet drivers)
    • @logged_in – indicates that the test needs to run in the context of a logged-in user, this sometimes makes sense to express with a tag, although a Background section would be more commonly used

    Additionally, tags can be used just for informational purposes. I’ve seen teams tag tests with the related issue number, author, developer, amongst other things, many of which can be useful (but many of which duplicate information which is easily found in source control, so I’d caution against that).

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

Sidebar

Related Questions

I am using Ruby on Rails with Cucumber and Capybara. How would I go
I am using cucumber and RSpec for my new ruby on rails application and
I am using cucumber to write features for a new ruby on rails application.
I am using Ruby on Rails 3.0.9 and I would like to retrieve all
I am using Ruby on Rails v3.2.2 and I would like to retrieve database
I am using Ruby on Rails (3.2.2) and I would like to retrieve the
I am using Ruby on Rails 3.2.2, cucumber-rails-1.3.0, rspec-rails-2.8.1, capybara-1.1.2 and factory_girl-2.6.3. I have
I am using Ruby on Rails 3.2.2, cucumber-rails-1.3.0, rspec-rails-2.8.1 and capybara-1.1.2 with the Selenium
I am using Ruby on Rails 3.2.2, cucumber-rails-1.3.0, rspec-rails-2.8.1 and capybara-1.1.2 with the Selenium
I'm using Ruby on Rails to make an application where businesses can create accounts

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.