Fingertips / headless-squirrel

A command-line JavaScript test runner for the Mac

This URL has Read+Write access

headless-squirrel / Rakefile
100644 49 lines (41 sloc) 1.363 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
task :default => :test
 
desc "Run the tests"
task :test do
  sh "ruby -r#{Dir['test/unit/*_test.rb'].join(' -r')} -e ''"
end
 
# HeadlessSquirrel::Rake::Runner.new :regression do |t|
# t.files = Dir['test/regression/prototype/unit/*.html']
# end
 
desc "Run all the regression tests"
task :ci do
  sh "./bin/jstest #{Dir['test/regression/**/unit/*_test.html'].join(' ')}"
end
 
namespace :ci do
  desc "Run the prototype regression tests"
  task :prototype do
    sh "./bin/jstest #{Dir['test/regression/prototype/unit/*_test.html'].join(' ')}"
  end
  
  desc "Run the scriptaculous regression tests"
  task :scriptaculous do
    sh "./bin/jstest #{Dir['test/regression/scriptaculous/unit/*_test.html'].join(' ')}"
  end
end
 
begin
  require 'jeweler'
  Jeweler::Tasks.new do |gemspec|
    gemspec.name = "headless-squirrel"
    gemspec.summary = "A command-line JavaScript test runner for the Mac."
    gemspec.description = "A OS X command line tool to run JavaScript (Prototype) unit tests from the comfort of your terminal."
    gemspec.homepage = "http://github.com/Fingertips/headless-squirrel/tree/master"
    
    gemspec.email = "eloy.de.enige@gmail.com"
    gemspec.authors = ["Eloy Duran"]
  end
rescue LoadError
end
 
begin
  require 'jewelry_portfolio/tasks'
  JewelryPortfolio::Tasks.new do |p|
    p.account = 'Fingertips'
  end
rescue LoadError
end