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 6650743
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:55:44+00:00 2026-05-26T00:55:44+00:00

Does anybody have any idea how I would make this shorter and less redundant:

  • 0

Does anybody have any idea how I would make this shorter and less redundant:

Feature: nosql
  Scenario: flatfile

    Sometimes a user just wants to have flatfile storage like the
    classic Jekyll CMS.  When this is the case we should make sure
    that we adhere to classic folder and file structure, and store
    the generated content in _site unless the user decides that
    they want generation to be stored inside of memcached, then we
    should go ahead and use that.

    Given I have chosen flatfile storage for my site
    When I request a page, "the_page"
    And I have chosen flatfile generation
    Then I should pull the page from "_site"

    Given I have chosen flatfile storage for my site
    When I request a page, "the_page"
    And I have chosen memcached generation
    Then I should pull the page from memcached

I just see too much repeated text and even though Cucumber is meant to help people communicate it just seems like it’s made things perhaps “too dumb” because of all the repetition in certain types of scenarios? Unless I am missing something.

There is also the other small problem, how would I make one feature have a dependency of another feature? For example memcached itself is a feature so how would I require that feature in this feature so that if memcached is not implemented yet then flatfile scenario fails when it meets memcached storage.

Edit: Also I know that flatfile storage isn’t nosql, I just threw it in there because I haven’t decided which nosql besides Git I want… so it was easier to just throw up flatfile for now so I can start to grasp cucumber for my projects.

  • 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-26T00:55:44+00:00Added an answer on May 26, 2026 at 12:55 am

    You can use a Background, like this:

    Feature: nosql
      Background:
        Sometimes a user just wants to have flatfile storage like the
        classic Jekyll CMS.  When this is the case we should make sure
        that we adhere to classic folder and file structure, and store
        the generated content in _site unless the user decides that
        they want generation to be stored inside of memcached, then we
        should go ahead and use that.
    
        Given I have chosen flatfile storage for my site
        When I request a page, "the_page"
    
      Scenario: flatfile
        When I have chosen flatfile generation
        Then I should pull the page from "_site"
    
      Scenario: memcached
        When I have chosen memcached generation
        Then I should pull the page from memcached
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

does anybody have any idea what's does this mean: onLoad=MyOnLoad? thanks
Does anybody have any idea how to print an excel file programatically using C#
Does anybody have an idea how to statically compile any resource file right into
Does anybody have any reference material that details Cauchy-Reed algorithm? Googling for Cauchy-Reed Solomon
Does anybody have any experience with different fonts for OCR? I am generating an
does anybody have any experience writing up a offline data storage & access app
Does anybody have any advice on working in a Date Driven Development environment? Essentially,
Does anybody have any experience/ knowledge in installing the aspImage.dll on a 64-bit Windows
Does anybody have any experience with TFS no longer letting somebody queue a new
I have three easy questions. Does anybody use QuickTest Pro for automated testing? Any

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.