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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:16:35+00:00 2026-05-26T13:16:35+00:00

I like Lettuce, and the feel of testing with it. Could I replace all

  • 0

I like Lettuce, and the feel of testing with it. Could I replace all the tests ( doctests/unit tests ) in a project with Lettuce features?

  • 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-26T13:16:36+00:00Added an answer on May 26, 2026 at 1:16 pm

    I have to disagree with Andy.

    I do agree that the appropriate testing should be done at the appropriate time, and that unit tests (i.e. ones that do not interact with anything outside their unit) do not replace all other forms of testing.

    But that doesn’t necessarily mean that with the proper separation you cannot use a BDD framework (I too haven’t used Lettuce) as the runner for your tests.

    I too really like the fact that Gherkin syntax can be pushed back towards business experts, testers and sponsors as a means of capturing the process to follow, so I see no reason why one set of specifications can’t be aimed at the Unit level, but another could be aimed at the system and regression levels.

    Consider this (contrived and obviously nowhere near enough granular) example

    • Given My test server is updated with last nights build
    • When I run my regressionTestPack1
    • Then my regression results should match the known results for
      regressionTestPack1

    I am also not saying that this is appropriate in ever case. You should evaluate what benefit you get from this approach over leaving all your tests in different test running systems. In particular consider what the experience base is of the people performing the testing.

    So if you are writing a small technical project, as the only the developer and you prefer this syntax, theres no reason not too. Just be very careful you still isolate your unit tests from your system tests from your regression tests.

    If however you are part of a large team of devs, testers, business analysts, then your case will need to much stronger and is unlikely to actually be valid.

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

Sidebar

Related Questions

Like it or not, occasionally you have have to write tests for classes that
Like a good little coder, all of my Django templates inherit from a base.html.
Like this one? http://weblogs.asp.net/dwahlin/archive/2007/09/09/c-3-0-features-object-initializers.aspx Person p = new Person() { FirstName = John, LastName
Like many people we utilise the tree structure of each TFS project's Iteration field
Like a lot of web developers, I like to use .htaccess to direct all
Like many companies that require all access be through stored procedures, we seem to
Like I understand, @synthesize actually is generating the Getters and Setters. But what's @property
Like most web developers these days, I'm thoroughly enjoying the benefits of solid MVC
Like many people here, I started my programming experience with the good ol' green
Like many programmers, I'm prone to periodic fits of inspiration wherein I will suddenly

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.