rcov_rails 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/README +18 -7
- data/lib/tasks/coverage.rake +9 -1
- metadata +3 -3
data/README
CHANGED
@@ -8,15 +8,26 @@ Enjoy.
|
|
8
8
|
Example
|
9
9
|
=======
|
10
10
|
|
11
|
+
Install as a Rails 3 Gem:
|
12
|
+
|
13
|
+
$: vim Gemfile
|
14
|
+
|
15
|
+
group :development do
|
16
|
+
get "rcov_rails"
|
17
|
+
end
|
18
|
+
|
19
|
+
$: rake test:coverage # boom!
|
20
|
+
|
11
21
|
Install as a Rails 2.x Plugin:
|
12
|
-
sudo gem install rcov
|
13
|
-
ruby script/plugin install git://github.com/matthewrudy/rcov_rails
|
14
|
-
rake test:coverage # boom!
|
15
22
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
rake test:coverage # boom!
|
23
|
+
$: sudo gem install rcov
|
24
|
+
$: ruby script/plugin install git://github.com/matthewrudy/rcov_rails
|
25
|
+
$: rake test:coverage # boom!
|
20
26
|
|
27
|
+
Install as a Rails 3.x Plugin:
|
21
28
|
|
29
|
+
$: sudo gem install rcov
|
30
|
+
$: rails plugin install git://github.com/matthewrudy/rcov_rails
|
31
|
+
$: rake test:coverage # boom!
|
32
|
+
|
22
33
|
Copyright (c) 2010 [Matthew Rudy Jacobs], released under the MIT license
|
data/lib/tasks/coverage.rake
CHANGED
@@ -37,6 +37,7 @@ begin
|
|
37
37
|
Rcov::RcovTask.new("_#{scope}" => "db:test:prepare") do |t|
|
38
38
|
t.libs << "test"
|
39
39
|
t.test_files = Dir["test/#{scope.singularize}/**/*_test.rb"]
|
40
|
+
t.add_descriptions = false if t.respond_to?(:add_descriptions=)
|
40
41
|
t.rcov_opts = ["--no-html", "--aggregate coverage.data", "--exclude '^(?!(app|lib))'"]
|
41
42
|
end
|
42
43
|
|
@@ -51,6 +52,7 @@ begin
|
|
51
52
|
Rcov::RcovTask.new(:generate) do |t|
|
52
53
|
t.libs << "test"
|
53
54
|
t.test_files = []
|
55
|
+
t.add_descriptions = false if t.respond_to?(:add_descriptions=)
|
54
56
|
t.rcov_opts = ["--html", "--aggregate coverage.data", "--exclude '^(?!(app|lib))'"]
|
55
57
|
end
|
56
58
|
|
@@ -61,5 +63,11 @@ begin
|
|
61
63
|
end
|
62
64
|
|
63
65
|
rescue LoadError
|
64
|
-
|
66
|
+
|
67
|
+
namespace :test do
|
68
|
+
task :coverage do
|
69
|
+
puts "You must install the 'rcov' gem to use rcov_rails\n\tsudo gem install rcov"
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
65
73
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 7
|
9
|
+
version: 0.1.7
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Matthew Rudy Jacobs
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-03-
|
17
|
+
date: 2010-03-12 00:00:00 +08:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|