public
Description: Piston is a utility that eases vendor branch management. This repository is a complete reimplementation of Piston to provide different backends, depending on the repositories and working copies you pistonize from.
Homepage: http://piston.rubyforge.org/
Clone URL: git://github.com/francois/piston.git
francois (author)
Tue May 13 16:36:07 -0700 2008
commit  0d066f30f00db013c1dd0ac62b464156dc061b92
tree    9762b08026534fd007a708420adf00b4445d3a22
parent  880fa0676dd04e9530252964b17b2f1065610274
piston / tasks / test.rake
100644 31 lines (25 sloc) 0.698 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
require "rake/testtask"
 
namespace :test do
  Rake::TestTask.new("units") do |t|
    t.libs << "test"
    t.test_files = FileList['test/unit/**/test_*.rb']
    t.verbose = true
    t.warning = false
  end
 
  Rake::TestTask.new("integration") do |t|
    t.libs << "test"
    t.test_files = FileList['test/integration/**/test_*.rb']
    t.verbose = true
    t.warning = false
  end
 
  Rake::TestTask.new("recent") do |t|
    t.libs << "test"
    t.verbose = true
    t.warning = false
 
    # 10 minutes ago
    cutoff_at = Time.now - 10 * 60
 
    t.test_files = FileList["test/integration/**/test_*.rb", "test/unit/**/test_*.rb"].select do |path|
      File.mtime(path) > cutoff_at
    end
  end
end