public
Fork of yrashk/strokedb
Description: StrokeDB is a lightweight approach to document-oriented database, currently featuring pure Ruby/JRuby implementation.
Homepage: http://groups.google.com/group/strokedb
Clone URL: git://github.com/tmm1/strokedb.git
Last slight adjustment to the rake tasks relating to rcov and cruise
elliottcable (author)
Fri Apr 18 15:29:55 -0700 2008
commit  ca7bd934d2eb5b6ef179026176b3646db7722aa4
tree    74afc31cfc7eef4822a510fe3cd5ae673a28ed02
parent  18f6fa86034ddd5caf475a9adceed8ea545ee140
...
41
42
43
44
 
45
46
47
48
 
49
50
51
52
53
54
 
55
56
57
...
41
42
43
 
44
45
46
47
 
48
49
50
51
52
53
 
54
55
56
57
0
@@ -41,17 +41,17 @@ Echoe.taskify do
0
   end
0
   
0
   desc 'Check what\'s up in this mug'
0
- task :sup => [:'rcov:summary']
0
+ task :sup => [:'rcov:run', :'rcov:verify']
0
   
0
   # Developers: Run this before commiting!
0
   desc 'Check everything over before commiting!'
0
- task :aok => [:'rcov:verbose', :'rcov:verify_verbose', :'rcov:open',
0
+ task :aok => [:'rcov:verbose', :'rcov:strict', :'rcov:open',
0
                 :'rdoc:html', :'rdoc:open',
0
                 :'ditz:stage', :'ditz:html', :'ditz:todo', :'ditz:status', :'ditz:html:open']
0
 end
0
 
0
 # desc 'Run by CruiseControl.rb during continuous integration'
0
-task :cruise => [:'rcov:run', :'rcov:verify', :'ditz:html', :'rdoc:html']
0
+task :cruise => [:'ditz:html', :'rdoc:html', :'rcov:bw', :'rcov:verify']
0
 
0
 # By default, we just list the tasks.
0
 task :default => :list
...
1
2
 
 
3
4
5
6
7
 
8
9
10
11
12
 
 
 
13
14
15
16
17
 
18
19
20
21
 
 
22
23
24
...
28
29
30
 
31
32
33
34
35
36
37
 
 
38
39
40
...
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
...
31
32
33
34
35
36
37
38
39
40
 
41
42
43
44
45
0
@@ -1,24 +1,27 @@
0
 namespace :rcov do
0
- Spec::Rake::SpecTask.new(:run) do |t|
0
+ # Runs specs, runs rcov and textual summary
0
+ Spec::Rake::SpecTask.new(:bw) do |t|
0
     t.spec_files = Dir['spec/**/*_spec.rb'].sort
0
     t.libs = ['lib', 'server/lib' ]
0
     t.rcov = true
0
     # t.rcov_opts = ['--exclude-only', '".*"', '--include-file', '^app,^lib']
0
- t.rcov_opts = ['--exclude-only', '"spec\/,^\/"']
0
+ t.rcov_opts = ['--text-summary', '--exclude-only', '"spec\/,^\/"']
0
     t.rcov_dir = :meta / :coverage
0
   end
0
   
0
- Spec::Rake::SpecTask.new(:verbose) do |t|
0
- t.spec_opts = ["--format", "specdoc", "--colour"]
0
+ # Runs specs, runs rcov, with color and textual summary
0
+ Spec::Rake::SpecTask.new(:run) do |t|
0
+ t.spec_opts = ["--colour"]
0
     t.spec_files = Dir['spec/**/*_spec.rb'].sort
0
     t.libs = ['lib', 'server/lib' ]
0
     t.rcov = true
0
     # t.rcov_opts = ['--exclude-only', '".*"', '--include-file', '^app,^lib']
0
- t.rcov_opts = ['--exclude-only', '"spec\/,^\/"']
0
+ t.rcov_opts = ['--text-summary', '--exclude-only', '"spec\/,^\/"']
0
     t.rcov_dir = :meta / :coverage
0
   end
0
   
0
- Spec::Rake::SpecTask.new(:summary) do |t|
0
+ # Runs verbose specs, runs rcov, with color and textual summary
0
+ Spec::Rake::SpecTask.new(:verbose) do |t|
0
     t.spec_opts = ["--format", "specdoc", "--colour"]
0
     t.spec_files = Dir['spec/**/*_spec.rb'].sort
0
     t.libs = ['lib', 'server/lib' ]
0
@@ -28,13 +31,15 @@ namespace :rcov do
0
     t.rcov_dir = :meta / :coverage
0
   end
0
   
0
+ # Verify coverage
0
   RCov::VerifyTask.new(:verify) do |t|
0
     t.threshold = StrokeDB::COVERAGE
0
     t.index_html = :meta / :coverage / 'index.html'
0
     t.require_exact_threshold = false
0
   end
0
   
0
- RCov::VerifyTask.new(:verify_verbose) do |t|
0
+ # Verify coverage, strictly
0
+ RCov::VerifyTask.new(:strict) do |t|
0
     t.threshold = StrokeDB::COVERAGE
0
     t.index_html = :meta / :coverage / 'index.html'
0
   end

Comments

    No one has commented yet.