small updates

This commit is contained in:
John Bintz 2012-04-23 08:43:30 -04:00
parent 02c8312a20
commit 9518f12472
2 changed files with 12 additions and 0 deletions

4
.gitignore vendored
View File

@ -5,3 +5,7 @@ _site/
ext/
pkg/
coverage/
tmp/
vendor/
.DS_Store

View File

@ -331,6 +331,8 @@ jasmine-headless-webkit [ -c / --colors ]
[ -l / --list ]
[ --report <report file> ]
[ --runner-out <html file> ]
[ --use-server ]
[ --server-port <port number> ]
[ -j / --jasmine-config <path to jasmine.yml> ]
[ --seed <random seed> ]
<spec files to run>
@ -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: