GithubHelp home page GithubHelp logo

juzna / cuke4php Goto Github PK

View Code? Open in Web Editor NEW

This project forked from olbrich/cuke4php

1.0 2.0 0.0 277 KB

a wire protocol server in php for cucumber

Home Page: https://github.com/olbrich/cuke4php/wiki

License: MIT License

PHP 83.23% Ruby 16.77%

cuke4php's Introduction

cuke4php

This project implements the cucumber wire protocol for PHP projects. Information about the wire protocol: http://wiki.github.com/aslakhellesoy/cucumber/wire-protocol

Using this protocol it is possible to directly interact with PHP code at any level without the need for a web server. To accomplish this, when cucumber is running against a directory containing feature files and it cannot resolve a particular step definition, it will ask a known wire server (as defined in a .wire file) to interpret and run those steps.

Install

To install Cuke4Php, follow these steps:

[sudo] gem install cuke4php

Note: I realize the irony inherent in a gem being used to distribute PHP code.

Usage

  • run 'cuke4php path/to/features' from the command line

  • all parameters get passed to cucumber when it starts, but the last parameter on the command line should be the path to your features directory

  • make sure your cucumber features has a 'Cuke4Php.wire' file in step_definitions containing something like:

      host: localhost
      port: <%= ENV['CUKE4PHP_PORT'] %>
    
  • you can write both Ruby and PHP steps

  • you must require the PHPUnit library from a file in your features/support/ directory (e.g., features/support/Env.php) for cuke4php to work

Roadmap

bin/cuke4php

  • support an option like 'cuke4php --init' which will generate the directory structure and support files necessary to use cuke4php with a php project.
  • lint check all php files in features directory before starting the cuke4php server

Dependencies

Goals

This project utilizes PHPUnit because it has a robust set of assertions, has good mocking, and is widely used. This will facilitate adoption by developers who are already familiar with it.

This project was developed against the 5.2.x versions of PHP, to ensure compatibility with older PHP projects.

Support

Support for this project was provided by iContact, inc. (http://www.icontact.com)

Contributors

cuke4php's People

Contributors

aledalgrande avatar bmcgavin avatar olbrich avatar

Stargazers

 avatar

Watchers

 avatar  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.