public
Description: Tool to help student oriented ministries keep track of who's involved.
Homepage: http://www.ministrytrack.org
Clone URL: git://github.com/twinge/ministry-tracker.git
Click here to lend your support to: ministry-tracker and make a donation at www.pledgie.com !
Josh Starcher (author)
Wed Oct 28 17:23:15 -0700 2009
ministry-tracker / Rakefile
100644 38 lines (29 sloc) 1.154 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
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
 
require(File.join(File.dirname(__FILE__), 'config', 'boot'))
 
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
 
require 'tasks/rails'
 
namespace :test do
  desc "Generate code coverage with rcov"
  task :coverage do
    rm_f "doc/coverage/coverage.data"
    rm_rf "doc/coverage"
    mkdir "doc/coverage"
    
    rcov = %(rcov --rails --aggregate doc/coverage/coverage.data --text-summary -Ilib --html -o doc/coverage test/unit/*_test.rb test/functional/*_test.rb)
    tests = system rcov
    
    system "open doc/coverage/index.html" if (PLATFORM['darwin'] && tests)
  end
end
 
# require 'rubygems'
# require "deep_test/rake_tasks"
 
# sample DeepTest task
#
# DeepTest::TestTask.new "test_all" do |t|
# t.number_of_workers = 2 # optional, defaults to 2
# t.timeout_in_seconds = 30 # optional, defaults to 30
# t.server_port = 6969 # optional, defaults to 6969
# t.pattern = "test/**/*_test.rb"
# t.libs << "test" # may be necessary for Rails >= 2.1.x
# end