public
Fork of francois/piston
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/technicalpickles/piston.git
Search Repo:
No more warnings during test running: set warning to false.  New 
test:recent task.  Default test task runs unit then integration tests.
francois (author)
Fri May 09 07:51:35 -0700 2008
commit  b80cabf5918ba3dc3451e13ab9bdc808f935353d
tree    cd1ddbacc8c03232acac9120efff2a5a0e50e408
parent  3eacc0894fcfcecfd91726cd42fa0a39d88d2f5b
...
5
6
7
8
 
9
10
11
12
13
14
15
 
16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
...
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
0
@@ -5,13 +5,34 @@ namespace :test do
0
     t.libs << "test"
0
     t.test_files = FileList['test/unit/**/test_*.rb']
0
     t.verbose = true
0
- t.warning = true
0
+ t.warning = false
0
   end
0
 
0
   Rake::TestTask.new("integration") do |t|
0
     t.libs << "test"
0
     t.test_files = FileList['test/integration/**/test_*.rb']
0
     t.verbose = true
0
- t.warning = true
0
+ t.warning = false
0
   end
0
+
0
+ Rake::TestTask.new("recent") do |t|
0
+ t.libs << "test"
0
+ t.verbose = true
0
+ t.warning = false
0
+
0
+ # 10 minutes ago
0
+ cutoff_at = Time.now - 10 * 60
0
+
0
+ t.test_files = FileList["test/integration/**/test_*.rb", "test/unit/**/test_*.rb"].select do |path|
0
+ File.mtime(path) > cutoff_at
0
+ end
0
+ end
0
+end
0
+
0
+Rake::TestTask.new("test") do |t|
0
+ Rake::Task["test:units"].invoke
0
+ Rake::Task["test:integration"].invoke
0
+
0
+ # Don't run the default test task
0
+ exit 0
0
 end

Comments

    No one has commented yet.