Sha256: 1027eab4a4122dd90895da283b3f4cffa05f93e1686ec9ba8adcd7a3b198d49a

Contents?: true

Size: 918 Bytes

Versions: 16

Compression:

Stored size: 918 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::Runner.new.start_server
  end

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

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

  desc "Starts the server, captures the browsers, runs the tests - all at the same time"
  task :run do
    config = JsTestDriver::Runner.new
    output_path = ENV['OUTPUT_PATH']
    output_path = File.join(config.generated_files_dir, 'tests') if ENV['OUTPUT_XML']
    config.start_server_capture_and_run(ENV['TESTS'], ENV['BROWSERS'], output_path, ENV['CAPTURE_CONSOLE'])
  end

end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
sayso-js-test-driver-rails-0.4.3.002 lib/js_test_driver/tasks.rb
sayso-js-test-driver-rails-0.4.3.001 lib/js_test_driver/tasks.rb
sayso-js-test-driver-rails-0.4.3 lib/js_test_driver/tasks.rb
js-test-driver-rails-0.4.3 lib/js_test_driver/tasks.rb
js-test-driver-rails-0.4.2 lib/js_test_driver/tasks.rb
js-test-driver-rails-0.4.1 lib/js_test_driver/tasks.rb
js-test-driver-rails-0.4.0 lib/js_test_driver/tasks.rb
js-test-driver-rails-0.3.4 lib/js_test_driver/tasks.rb
js-test-driver-rails-0.3.3 lib/js_test_driver/tasks.rb
js-test-driver-rails-0.3.2 lib/js_test_driver/tasks.rb
js-test-driver-rails-0.3.1 lib/js_test_driver/tasks.rb
js-test-driver-rails-0.3.0 lib/js_test_driver/tasks.rb
js-test-driver-rails-0.2.9 lib/js_test_driver/tasks.rb
js-test-driver-rails-0.2.8 lib/js_test_driver/tasks.rb
js-test-driver-rails-0.2.7 lib/js_test_driver/tasks.rb
js-test-driver-rails-0.2.6 lib/js_test_driver/tasks.rb