Giter Site home page Giter Site logo

gogza / kyuri Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vowsjs/kyuri

1.0 2.0 0.0 144 KB

A node.js cucumber implementation with a few extra asynchronous keywords. supports 160+ languages and exports to VowsJS stubs

Home Page: http://prenup.nodejitsu.com

kyuri's Introduction

kyuri - plain words go in, VowsJS stubs come out

kyuri is a node.js Cucumber implementation with a few extra asynchronous keywords. it supports 160+ languages and exports to VowsJS stubs

Example

A feature in kyuri might look like this...

Feature: Addition
  In order to avoid silly mistakes
  As a math idiot
  I want to be told the sum of two numbers

  Scenario: Add two numbers
    Given I have entered 50 into the calculator
    And I have entered 70 into the calculator
    When I press add
    Then the result should be 120 on the screen

Should output:

vows.describe('Addition').addBatch({
  "Add two numbers": {
  	"GIVEN I have entered 50 into the calculator": {
		  topic: function () {
		    /* Setup your test conditions here */
		  },
			"AND I have entered 70 into the calculator": {
			  topic: function () {
			    /* Setup your test conditions here */
			  },
				"WHEN I press add": {
				  topic: function () {
				    /* Setup your test conditions here */
				  },
					"THEN the result should be 120 on the screen": function () {
					  /* Setup your test assertions here */
					},
				}
			}
		}
  }
}).export(module);

Compatibility

gherkin is almost fully supported by kyuri. kyuri can push and pull updates from the gherkin project, check out i18n.js and i18n-generator.rb

(we are CLOSE to gherkin compliance, we will be working on 100% in v0.2.0)

Installation

Installing npm (node package manager)

  curl http://npmjs.org/install.sh | sh

Installing kyuri

  npm install kyuri

###VowsJS

Vows is a popular Behavior Driven Development framework for node.js. Vows was built from the ground up to test asynchronous code. It executes your tests in parallel when it makes sense, and sequentially when there are dependencies.

Instead of crafting your VowsJS code from hand (using JavaScript), kyuri allows you to auto-generate Vows stubs.

###Protip: kyuri is meant to be a low-level tool. if you want to compose Features and Scenarios using kyuri and a rich user-interface check out our other Node Knockout Entry, prenup.

Authors

created by Charlie Robbins for Node Knockout 2010

big ups to Jeremy Ashkenas for being a languages black-belt and making coffee-script

gherkin is Copyright (c) 2009-2010 Mike Sassak, Gregory Hnatiuk, Aslak Hellesøy, see GHERKIN.LIC for more details.

kyuri's People

Contributors

marak avatar indexzero avatar aslakhellesoy avatar fotoverite avatar

Stargazers

Gordon McAllister avatar

Watchers

Gordon McAllister avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.