rubys / gorp

Rails scenario testing support library

This URL has Read+Write access

rubys (author)
Sun Oct 18 12:45:17 -0700 2009
commit  5da7c0cf8076ea7fb2c88c9d5b1e9b330ef06514
tree    1235db2f2549498a33823e55ebc976067ac18857
parent  053078320f53947a9b59d284b2c979c241b155e4
gorp /
name age message
file .gitignore Thu Sep 17 11:39:20 -0700 2009 Fix typo tzinf=>tzinfo [rubys]
file Manifest Loading commit data...
file README Thu Sep 17 07:56:33 -0700 2009 initial commit [rubys]
file Rakefile
file gorp.gemspec
directory lib/
README
Running this should only require Rails 2.2.2 or later, and the command line
interfaces for sqlite3 and curl.  Tested on Ubuntu Linux 9.04 ("Jaunty
Jackalope") and Mac OSX 10.5.6 ("Leopard").

Installation of all necessary dependencies from a fresh install of Ubuntu 9.04:

  sudo apt-get install rails git-core sqlite3 curl
  sudo gem install rubygems-update
  sudo /var/lib/gems/1.8/bin/update_rubygems
  sudo gem install rails
  sudo gem sources -a http://gems.github.com
  sudo gem install rubys-gorp

Execution instructions:

  This is a library which, among other things, will interpret ARGV.  Here's
  an example based on http://github.com/rubys/awdwr:

  ruby makedepot.rb [VERSION] [restore] [RANGE]... [save]

    "restore" - restore from snapshot before resuming execution

    "VERSION" specifies the Rails version to test.  Examples:
      edge
      _2.2.2_
      ~/git

    "RANGE" specifies a set of sections to execute.  Examples:
      6.2..6.5
      7.1-9.5
      16

    "save" - save snapshot after execution completes

Tests against the output produced (e.g., makedepot.html) can also be run
separately:

  ruby checkdepot.rb [partial]

  "partial" means that tests which cover sections that are not included in
    makedepot.html are to be omitted.