Skip to content
This repository

An example of how to utilize screw unit and selenium to automate javascript unit tests

branch: master
README.md

Selenium & Screw Unit Automated Testing

This is an example of Knewton's use of Selenium and Rspec to automatically run ScrewUnit tests.

Requirements

To run this example code, you need the following:

  • a Unixy operating system (Mac, Linux)
  • Ruby
  • Rubygems
  • Either Firefox or Chrome with Webdriver

Running

To view this example, simply:

./run_with_firefox.sh

This will:

  • Install the gem "rspec" if you don't have it
  • Install the gem "selenium-webdriver" if you don't have it
  • Clone jQuery-Shorthand if you don't have it
  • Run the project's unit tests in Firefox using Selenium

Running with Chrome

Ensure you have Chrome Webdriver. If you would rather use Chrome than Firefox:

./run_with_chrome.sh
Something went wrong with that request. Please try again.