Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cucumber for PHP application

Is it possible to use Cucumber outside Rails? I'd like to start using it for testing some of my PHP applications, but I really don't know how to start.

Probably the easiest way would be creating a Rails project only to run Cucumber features, but that seems like to me as overkill.

What is the simplest way to set up Cucumber for testing a non-Rails application?

like image 903
Jakub Arnold Avatar asked Sep 07 '09 14:09

Jakub Arnold


People also ask

What is Cucumber tool used for?

Cucumber is an open-source software testing tool written in Ruby. Cucumber enables you to write test cases that anyone can easily understand regardless of their technical knowledge.

Which software is required for Cucumber?

Hi Govind, to run a Cucumber Web Test, following software requirements should be fulfilled: Ruby and its Development Kit. Cucumber. IDE like Eclipse or ActiveState.

When should I use cucumber framework?

The decision to use Cucumber or a unit testing framework is depending on the cooperation with the business. If they have opinions about the behaviour, then use Cucumber. If they are indifferent, use a unit testing framework.

What is BDD using Cucumber?

A cucumber is a tool based on Behavior Driven Development (BDD) framework which is used to write acceptance tests for the web application. It allows automation of functional validation in easily readable and understandable format (like plain English) to Business Analysts, Developers, Testers, etc.


2 Answers

Check out:

https://github.com/cucumber/cucumber/wiki/php

It is easy to use cucumber with PHP, even managing the database.

like image 105
mikeymckay Avatar answered Oct 17 '22 15:10

mikeymckay


Checkout http://everzet.com/Behat/ (the URL appears to have changed to http://behat.org/)

like image 28
viv Avatar answered Oct 17 '22 14:10

viv