Sha256: 1a862e65a5399bd3ea5cf42a344c433f670f150052c8ced0735abb60e0145c69

Contents?: true

Size: 971 Bytes

Versions: 5

Compression:

Stored size: 971 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), '..', 'js_test_driver'))

namespace :js_test_driver do

  desc "Starts the server using the provided configuration variables"
  task :start_server do
    JsTestDriver::Application.new.start_server
  end

  desc "Runs the javascript tests"
  task :run_tests do
    exit(1) unless JsTestDriver::Application.new.run_tests(:tests => ENV['TESTS'])
  end

  desc "Capture the browsers defined in config"
  task :capture_browsers do
    JsTestDriver::Application.new.capture_browsers(:browsers => ENV['BROWSERS'])
  end

  desc "Starts the server, captures the browsers, runs the tests - all at the same time"
  task :run do
    app = JsTestDriver::Application.new

    exit(1) unless app.run(:tests => ENV['TESTS'],
                           :browsers => ENV['BROWSERS'],
                           :output_xml => !!ENV['OUTPUT_XML'],
                           :capture_console => ENV['CAPTURE_CONSOLE'])
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
js-test-driver-rails-0.5.0.pre5 lib/js_test_driver/tasks.rb
js-test-driver-rails-0.5.0.pre4 lib/js_test_driver/tasks.rb
js-test-driver-rails-0.5.0.pre3 lib/js_test_driver/tasks.rb
js-test-driver-rails-0.5.0.pre2 lib/js_test_driver/tasks.rb
js-test-driver-rails-0.5.0.pre1 lib/js_test_driver/tasks.rb