doc updated

This commit is contained in:
John Bintz 2011-06-16 21:30:17 -04:00
parent c473fb5a2a
commit ba5e7f102f

View File

@ -234,7 +234,22 @@ If you don't want this behavior, pass in `--no-full-run` and filtered runs will
You can call the runner from Ruby: You can call the runner from Ruby:
{% highlight ruby %} {% highlight ruby %}
require 'jasmine/headless/runner'
status_code = Jasmine::Headless::Runner.run(
:colors => false,
#=> true to get colors
:remove_html_file => true,
#=> false to keep specrunners on failure
:jasmine_config => 'spec/javascripts/support/jasmine.yml',
#=> run a different config
:report => false,
#=> filename if a report file should be written
:full_run => true,
#=> false to not run a full run after a targeted run
:files => ['file_one_spec.js', 'file_two_spec.coffee']
#=> files to use for a targeted run, [] to run all
)
{% endhighlight %} {% endhighlight %}
## Automated testing during development ## Automated testing during development
@ -243,7 +258,7 @@ You can call the runner from Ruby:
If you use [Guard](https://github.com/guard/guard/), install [`guard-jasmine-headless-webkit`](http://github.com/guard/guard-jasmine-headless-webkit/) If you use [Guard](https://github.com/guard/guard/), install [`guard-jasmine-headless-webkit`](http://github.com/guard/guard-jasmine-headless-webkit/)
and run `guard init jasmine-headless-webkit` to add the necessary bits to your `Guardfile` to test a Rails 3.1 (or a well-structured Rails 3.0) app. and run `guard init jasmine-headless-webkit` to add the necessary bits to your `Guardfile` to test a Rails 3.1 (or a well-structured Rails 3.0) app.
Support for Autotest is deprecated and no new features will be added to the Autotest runners unless provided by other users. Support for Autotest is *deprecated* and no new features will be added to the Autotest runners unless provided by other users.
## Rake tasks ## Rake tasks