public
Description: cutting edge cms, blog, wiki, forum ...
Homepage: http://artweb-design.lighthouseapp.com/projects/13992-adva_cms/overview
Clone URL: git://github.com/svenfuchs/adva_cms.git
rwrede (author)
Tue Nov 03 02:10:24 -0800 2009
commit  8ad2cec4d1186883cdf703bb29a15f5f35dc9d72
tree    a56c516db51166d135c68b200f40948149c9a8c8
parent  cfd086c241889d26643167fd1eb0b484174e56d9
adva_cms / Rakefile
100644 19 lines (15 sloc) 0.638 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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