Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 18 lines (15 sloc) 0.638 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
require File.expand_path(File.dirname(__FILE__) + "/engines/adva_cms/test/javascript/lib/jstest")

namespace :test do
  desc "Runs all the JavaScript unit tests and collects the results"
  AdvaJavaScriptTestTask.new(:js) do |t|
    plugins_to_test = ENV['PLUGINS'] && ENV['PLUGINS'].split(',')
    browsers_to_test = ENV['BROWSERS'] && ENV['BROWSERS'].split(',')

    t.prepare_plugins(plugins_to_test)
    t.prepare_tests
    t.mount_root
    t.mount_plugins

    %w( safari firefox ie konqueror opera ).each do |browser|
      t.browser(browser.to_sym) unless browsers_to_test && !browsers_to_test.include?(browser)
    end
  end
end
Something went wrong with that request. Please try again.