forked from svenfuchs/adva_cms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
18 lines (15 loc) · 638 Bytes
/
Copy pathRakefile
File metadata and controls
18 lines (15 loc) · 638 Bytes
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