From 9518f12472dc51a454d5930d95847ecb037ff0fc Mon Sep 17 00:00:00 2001 From: John Bintz Date: Mon, 23 Apr 2012 08:43:30 -0400 Subject: [PATCH] small updates --- .gitignore | 4 ++++ index.md | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/.gitignore b/.gitignore index 918dfc8..e0fa907 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,7 @@ _site/ ext/ pkg/ coverage/ +tmp/ +vendor/ +.DS_Store + diff --git a/index.md b/index.md index 7b0da94..a697ed6 100644 --- a/index.md +++ b/index.md @@ -331,6 +331,8 @@ jasmine-headless-webkit [ -c / --colors ] [ -l / --list ] [ --report ] [ --runner-out ] + [ --use-server ] + [ --server-port ] [ -j / --jasmine-config ] [ --seed ] @@ -406,6 +408,12 @@ will be run. You can limit the run to only certain files by passing those to `ja jasmine-headless-webkit spec/javascripts/models/node_viewer.coffee {% endhighlight %} +### Serving files from an HTTP server + +The `--use-server` flag will start up a simple WEBrick server for serving files to the WebKit runner, as opposed to serving +them from the filesystem. This also lets you test things like HTML5 history stuff and other things that require an `http://` +URL when loading files. Normally, the port this server runs on is random, but you can specify it with `--server-port`. + #### Filtered runs and full runs Typically, targeted spec running is done by a tool like Guard, and the order of running goes like this: