Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.378.641 Times

PyCukes 0.1.3

Company: Hugo Lopes Tavares
Date Added: October 08, 2013  |  Visits: 297

PyCukes

Report Broken Link
Printer Friendly Version


Product Homepage
Download (33 downloads)



PyCukes is a Cucumber-like BDD tool built on top of Pyhistorian. It was created to fill the gap pyhistorian left, so with it is possible to talk to your stakeholders first with text files, instead of simple understendable python files like Pyhistorian.<br /><br />Usage:<br /><br />First, make sure you have installed story_runner, pyhistorian and pycukes. By default, if you just call pycukes from your command line into some dir, it will look for a stories dir (expecting your stories files are there) and then look for a step_definitions dir (expecting your step definitions are there). Each story file by convention ends with .story, like calculator.story and each step definition should end with steps.py, like calculator_steps.py.<br /><br />So, lets say you have the directory tree:<br /><br />|-- calculator<br /> `-- stories<br /> |-- calculator.story<br /> `-- step_definitions<br /> |-- calculator_steps.py<br /><br />To run your stories, you can simple call:<br /><br />pycukes<br /><br />Or if you can specify exactly what stories run:<br /><br />pycukes stories/calculator.story<br /><br />Parameters:<br /><br />-s or --stories-dir -- specify your stories directory<br />-t or --steps-dir -- specify your step definitions directory<br />-n or --no-colors -- tells pycukes not to show colored output<br />-n or --colored (default) -- tells pycukes to show colored output<br />-l or --language (en-us by default) -- specify your story language [en-us and pt-br are supported]<br /><br />Real Example:<br /><br />Directory tree:<br /><br />hugo@hugo-laptop:~/app$ tree<br />.<br />`-- stories<br /> |-- bowling_game.story<br /> `-- step_definitions<br /> `-- bowling_game_steps.py<br /><br />Content of bowling_game.story file:<br /><br />hugo@hugo-laptop:~/app$ cat stories/bowling_game.story<br />Story: Bowling Game<br /> As a bowling player<br /> I want to play bowling online<br /> So that I can play with everyone in the world<br /><br /> Scenario 1: Gutter Game<br /> Given I am playing a bowling game<br /> When I hit no balls<br /> Then I have 0 points<br /><br />Content of bowling_game_steps.py:<br /><br />hugo@hugo-laptop:~/app$ cat stories/step_definitions/bowling_game_steps.py<br />from pycukes import *<br /><br />class BowlingGame(object):<br /> score = 1<br /> def hit(self, balls):<br /> pass<br /><br /><br />@Given('I am playing a bowling game')<br />def start_game(context):<br /> context._bowling_game = BowlingGame()<br /><br />@When('I hit no balls')<br />def hit_no_balls(context):<br /> context._bowling_game.hit(0)<br /><br />@Then('I have 0 points')<br />def i_have_zero_points(context):<br /> assert context._bowling_game.score == 0<br /><br />Running:<br /><br />hugo@hugo-laptop:~/app$ pycukes stories/bowling_game.story<br />Story: Bowling Game<br /> As a bowling player<br /> I want to play bowling online<br /> So that I can play with everyone in the world<br /><br /> Scenario 1: Gutter Game<br /> Given I am playing a bowling game ... OK<br /> When I hit no balls ... OK<br /> Then I have 0 points ... FAIL<br /><br /> Failures:<br /> File "stories/step_definitions/bowling_game_steps.py", line 19, in i_have_zero_points<br /> assert context._bowling_game.score == 0<br /> Assertionerror<br /><br /><br /> Ran 1 scenario with 1 failure, 0 errors and 0 pending steps

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Balls Class Gutter Import Playing Points Scenario World
Users rating: 0/10

License: Freeware Size: 30.72 KB
USER REVIEWS
More Reviews or Write Review


PYCUKES RELATED
Games  -  wowdkper 1.3.7
wowdkper is a tool that it record member's points of World of Warcraft's guild.DKP, short for Dragon Kill Points, is a concept originally created by Thott of Afterlife.
811.39 KB  
Libraries  -  MT::Import::Mbox::Importer 1.0
MT::Import::Mbox::Importer is a wrapper class for importing a collection of mbox folders using MT::Import::Mbox. SYNOPSIS use MT::Import::Config::Importer; my $mt = MT::Import::Mbox::Importer->new("/path/to/config"); $mt->collect(); # You...
7.17 KB  
Libraries  -  phpArmory 0.2
phpArmory is a PHP class library. It allows PHP software developers to easily access data from the World of Warcraft Armory Web site. phpArmory project is useful because the Armory Web site contains up-to-date and official details on characters,...
174.08 KB  
Gaming Utilities  -  PennMUSH 1.8.3p1
PennMUSH is a MUD server that is often used for running social or role-playing games, with an extensive internal programming language. A mud ("multi-user dungeon") is a form of textual virtual reality program. A mud server is a computer program...
1.2 MB  
Gaming Utilities  -  A Small MUD 1.3
A Small MUD project is a minimal MUD implementation. A Small MUD is a minimal MUD implementation, with some mildly intelligent mobs running around creating rooms. A few pointers when reading the source code... the World class contains the...
16.38 KB  
Development Tools  -  ReadMaplePlot 1.0
Maple is a great tool for symbolic manipulation and is also very smart at plotting expressions, handling discontinuities,etc.However the plot customization and export possibilities are very primitive. Also, often I want to superimpose Maple plots...
10 KB  
Database Tools  -  CSV to SQL database converter 1.0
CSV to SQL database converter can be used to import data stored in CSV files into a database. The main class can import the data into a table named by imported CSV-file name. Table in database is like image of CSV file, query "DROP TABLE IF EXISTS...
10 KB  
Arcade Style Games  -  Untahris Common Playground 2.0
Untahris Common Playground - you can play several classic fun, simple arcade games. But playing alone is not fun, and you can play them in multiplayer mode (on one computer, local network, or maybe Internet). Now, Untahris has an original...
1024 KB  
Multimedia & Graphics  -  Copan Lite 11.11
Land surveyors and civil engineers: o Calculate surveys and manage points, effortlessly o Run Copan on Windows 2K/XP/Vista/7 o Use it forever and pay nothing o Choose quadrant bearings or N/S azimuths, and gons or DMS o...
5.44 MB  
Wallpaper Tools  -  Jugando con el Mundo
Playing with the World is a half real and half fantasy illustration. It is of two monk seals playing in the snow, in a fun moment. But also, they are playing with a ball, which is none other than the world.This wallpaper of two seals playing is...
1024 B  
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB