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: