johnbintz / jasmine-headless-webkit

This project is dead. You should use Karma instead. I do.
http://karma-runner.github.io/
194 stars 99 forks source link

How to access config? #162

Closed paulyoung closed 12 years ago

paulyoung commented 12 years ago

Can I access the configuration in Ruby to get the values of src_files and spec_files?

Even if I need to fork the Gem?

paulyoung commented 12 years ago

Here's how I implemented things:

runner = Jasmine::Headless::Runner.new(
  :colors => true,
  :remove_html_file => true,
  :runner_output_filename => false,
  :jasmine_config => 'spec/javascripts/support/jasmine.yml',
  :do_list => false,
  :full_run => true,
  :enable_cache => false,
  :files => [],
  :reporters => [ [ 'Console' ] ],
  :quiet => false,
  :use_server => false,
  :server_port => nil
)

runner.jasmine_config