small updates
This commit is contained in:
parent
02c8312a20
commit
9518f12472
4
.gitignore
vendored
4
.gitignore
vendored
@ -5,3 +5,7 @@ _site/
|
|||||||
ext/
|
ext/
|
||||||
pkg/
|
pkg/
|
||||||
coverage/
|
coverage/
|
||||||
|
tmp/
|
||||||
|
vendor/
|
||||||
|
.DS_Store
|
||||||
|
|
||||||
|
8
index.md
8
index.md
@ -331,6 +331,8 @@ jasmine-headless-webkit [ -c / --colors ]
|
|||||||
[ -l / --list ]
|
[ -l / --list ]
|
||||||
[ --report <report file> ]
|
[ --report <report file> ]
|
||||||
[ --runner-out <html file> ]
|
[ --runner-out <html file> ]
|
||||||
|
[ --use-server ]
|
||||||
|
[ --server-port <port number> ]
|
||||||
[ -j / --jasmine-config <path to jasmine.yml> ]
|
[ -j / --jasmine-config <path to jasmine.yml> ]
|
||||||
[ --seed <random seed> ]
|
[ --seed <random seed> ]
|
||||||
<spec files to run>
|
<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
|
jasmine-headless-webkit spec/javascripts/models/node_viewer.coffee
|
||||||
{% endhighlight %}
|
{% 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
|
#### Filtered runs and full runs
|
||||||
|
|
||||||
Typically, targeted spec running is done by a tool like Guard, and the order of running goes like this:
|
Typically, targeted spec running is done by a tool like Guard, and the order of running goes like this:
|
||||||
|
Loading…
Reference in New Issue
Block a user