Pyrite is a lightweight DSL around the Selenium browser testing framework.
We found Cucumber to be awesome, but no one was reading the features. We found Webrat to be fantastic, but way too complex for what we wanted. So, we made Pyrite - a few selenium-client methods wrapped up in a readable way.
Using bundler:
gem 'pyrite', :require => falseInstalling as a Rails plugin should also work:
script/plugin install git://github.com/mintdigital/pyrite.git
Pyrite tests are just like regular Rails tests, but with a nice DSL:
require 'pyrite_helper' class BasicTest < Pyrite::PyriteTest test "it works" do visit root_path follow "next page" wait_for :page_load assert_text "some text you should see" end end
Pyrite has rake tasks to manage setting up the required servers and run your tests:
rake pyrite:start
rake pyrite:run
rake pyrite:stopThese can be run sequentially with:
rake pyrite:all
Check the RDoc and the wiki for more information.
Copyright © 2010 Mint Digital Ltd.
Released under the terms of the MIT License. See the MIT-LICENSE file