Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Environment setup and step definitions for testing WordPress with Cucumber
Ruby
Tag: v1.1

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples/features
lib
.gitignore
LICENCE
README.rdoc
Rakefile

README.rdoc

cucumber-wordpress

Environment setup and step definitions for testing WordPress with Cucumber.

Getting started

Install the gem:

gem install cucumber-wordpress --source http://gemcutter.org

Copy the examples/features/ directory into an existing WordPress installation:

cd wordpress-installation
cp -R /usr/lib/ruby/gems/1.8/gems/cucumber-wordpress-1.0/examples/features .

Configure wp-config variables:

vim features/support/config.yml

Run cucumber:

cucumber

Caveats

  • The WordPress installation you're testing must be being served over HTTP somehow (see WEBHOST in config.yml). Eventually I want to be able to start a Web server from within cucumber.

  • wp-config.php gets copied elsewhere and overwritten, so you can't be running this in a production environment.

Patches

  • Send me a pull request via GitHub or via email.

Author

  • Tom Adams <tom@thedextrousweb.com>

Copyright

Copyright © 2009 The Dextrous Web. See LICENCE for details.

Something went wrong with that request. Please try again.