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

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

Serving Software Downloads in 976 Categories, Downloaded 29.989.292 Times

PyCukes 0.1.3

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

PyCukes

Report Broken Link
Printer Friendly Version


Product Homepage
Download (16 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
PYCUKES RELATED
Games  -  Iceutils 0.8
IceUtils is a suite of command line tools designed to make creating a game world and playing through that world an easier task. Although some of the tools are specific to Iron Crowns Rolemaster role playing system, other tools can be used for...
82.94 KB  
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  
Games  -  39 Dots 1.0
You have to catch the ball for 30 seconds at most. You'll earn points and extra time. If you're lucky, you try to catch the colored balls have extra time and points. Moving and rotating platforms you may be a bit challenging....
22.9 MB  
Education  -  ABC Magnetic Pages: Fun Animated Shape Puzzles for Kids and Toddlers Lite 2.3
Filling in our magnetic pages with funny bright magnet toys - click! - is something all kids are going to like. A fun animated reward when the image is ready like that if a child was playing with real-world toys: the dragonflies fly,...
54.6 MB  
Books  -  Hello, Baby Animals! Free 1.0
Spend a day helping and playing with the world's cutest baby animals! Wake up a fawn at dawn! Pick out a wig for a pig! Help a baby fox find his socks! The app features 4 different scenes with baby animals, with hidden...
25.2 MB  
Lifestyle  -  Interkultur Germany 3.0.6.0
Join the world of voices! Get to know the world of INTERKULTUR, the "global player" of choral music: - Learn where the world of singers comes together in song - Meet top-class choirs from all over the world - Follow exciting...
4 MB  
Entertainment  -  Sad Violin 1.0.0.0
Show your lack of caring for your friends' daily dramas and problems by playing them the world's saddest violin. Simply stroke the violin chords on the screen and enjoy! Requirements: Windows Phone 8.1, Windows Phone 8, Windows Phone 7.5
2 MB  
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  
Games  -  LambdaRogue 0.1.105
LambdaRogue is a rogue-like role playing game set in the future of a somehow "parallel world" to our own. People had to go underground to survive a war between human society and the once peaceful DrakhNar, another species on the planet. People...
1024 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  
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
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  
Linux Software  -  SLAX 6.0+
Slax is a modern, portable, small and fast Linux operating system with a modular approach and outstanding design. Despite its small size, Slax provides a wide collection of pre-installed software for daily use, including a well organized graphical...
190 KB  
Linux Software  -  GTK+ 2.5
GTK+, which stands for the GIMP Toolkit, is a library for creating graphical user interfaces for the X Window System. It is designed to be small, efficient, and flexible. GTK+ is written in C with a very object-oriented approach. Language bindings...
60 MB  
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 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  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB