Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Cucumber for Python?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Phlip  
View profile  
 More options Nov 8, 3:52 pm
From: Phlip <phlip2...@gmail.com>
Date: Sat, 07 Nov 2009 20:52:21 -0800
Local: Sun, Nov 8 2009 3:52 pm
Subject: Cucumber for Python?
django-users group:

At my last gig I grooved on Cucumber to write customer tests, without all the
hooey required in certain other systems.

Here's a sample from their website:

Feature: Search courses
   In order to ensure better utilization of courses
   Potential students should be able to search for courses

   Scenario: Search by topic
     Given there are 240 courses which do not have the topic "biology"
     And there are 2 courses A001, B205 that each have "biology" as one of
              the topics
     When I search for "biology"
     Then I should see the following courses:
       | Course code |
       | A001        |
       | B205        |

Each line under the Scenario maps onto a Ruby regular expression, conjoined with
a block:

   When /I search for (.*)/ do |biology|
     # some setup or assertion code here here
   end

Inside the block you write testage, like a test case.

There's a ruby-python hybrid of Cuke available, but I would rather not inflict
too much Ruby on my current shop. So how easy would something like this be to clone?

And has anyone already started, or would like to collaborate on it?

--
   Phlip
   http://c2.com/cgi/wiki?ZeekLand


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ted Nyman  
View profile  
 More options Nov 8, 4:41 pm
From: Ted Nyman <tnm...@gmail.com>
Date: Sat, 7 Nov 2009 21:41:04 -0800
Local: Sun, Nov 8 2009 4:41 pm
Subject: Re: Cucumber for Python?

You might also want to take a look at pyccuracy, if you haven't already.

It provides similar BDD-style tests, and resembles Cucumber in a number of
ways. It's actually a Pythonic implementation of "Accuracy," which is
designed for BDD-style testing in C#, but don't let that deter you :)

http://www.pyccuracy.org/index.html
<http://www.pyccuracy.org/index.html>http://github.com/heynemann/pyccuracy

<http://github.com/heynemann/pyccuracy>Ted

On Sat, Nov 7, 2009 at 8:52 PM, Phlip <phlip2...@gmail.com> wrote:

> django-users group:

> At my last gig I grooved on Cucumber to write customer tests, without all
> the
> hooey required in certain other systems.
>  --

Phlip


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google