Every repository with this icon (
Every repository with this icon (
tree 8fc1e7907aee6d993509b6cb623c959da90509c5
parent a0ebb7464175eeb0d6e01905bb10335a5fa115ce
| name | age | message | |
|---|---|---|---|
| |
.gemified | Mon Sep 08 20:56:59 -0700 2008 | |
| |
.gitignore | Fri Aug 29 23:06:01 -0700 2008 | |
| |
.manifest | Tue Mar 17 13:12:31 -0700 2009 | |
| |
LICENSE | Thu Oct 23 18:42:12 -0700 2008 | |
| |
README.textile | Tue Oct 28 21:55:47 -0700 2008 | |
| |
Rakefile | Tue Oct 28 17:29:56 -0700 2008 | |
| |
bin/ | Tue Oct 28 17:29:56 -0700 2008 | |
| |
js/ | Mon Sep 08 20:56:59 -0700 2008 | |
| |
lib/ | Mon Mar 16 19:07:27 -0700 2009 | |
| |
screw-driver.gemspec | Tue Dec 02 17:24:07 -0800 2008 | |
| |
spec/ | Tue Dec 02 17:23:31 -0800 2008 |
Screw.Driver
Another way to run your Screw.Unit tests.
INSTALL
To build the gem, run this:
gemify -IABOUT
Still really early. To try it, run this:
./bin/screwdriver spec/fixtures/suite.htmlYou can specify a browser like so:
screwdriver spec/fixtures/suite.html —browser SafariBy default, Screw.Driver uses Firefox.
If you don’t want the server to automatically quit after
your suite runs, you can use the “—server” option:
Screw.Driver will generate urls for each of the external
scripts and CSS links you include in your suite.html file,
and will serve them from the directory that contains the
suite.html file.
To specify additional load paths for your JavaScripts, you can
use the “—load-paths” option:
Using with Rails
If you’re using Rails, run screwdriver from the root directory
of your app, and specify the “—rails” option. This will cause
the Screw.Driver server to serve the JavaScript files in your
public/javascripts directory. Example:
REQUIREMENTS
- sinatra
- hpricot
- gemify (to build)
TODO
- Inject base tag into DOM at Hpricot parsing stage
- Convert script src attributes to absolute paths at Hpricot parsing stage
- Don’t kill all Firefox tabs when complete
- Use #load_paths for Rails functionality







