simplecov 0.9.2 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -7
- data/.gitignore +0 -1
- data/.rubocop.yml +69 -0
- data/CHANGELOG.md +39 -22
- data/Gemfile +16 -15
- data/MIT-LICENSE +1 -1
- data/README.md +183 -178
- data/Rakefile +16 -7
- data/doc/alternate-formatters.md +36 -0
- data/doc/commercial-services.md +20 -0
- data/doc/editor-integration.md +13 -0
- data/features/rspec_basic.feature +3 -2
- data/features/rspec_groups_and_filters_complex.feature +2 -0
- data/features/rspec_groups_using_filter_class.feature +3 -2
- data/features/step_definitions/html_steps.rb +6 -7
- data/features/step_definitions/simplecov_steps.rb +18 -16
- data/features/step_definitions/transformers.rb +2 -2
- data/features/step_definitions/web_steps.rb +4 -4
- data/features/support/env.rb +17 -15
- data/lib/simplecov.rb +35 -24
- data/lib/simplecov/command_guesser.rb +33 -34
- data/lib/simplecov/configuration.rb +238 -234
- data/lib/simplecov/defaults.rb +37 -36
- data/lib/simplecov/exit_codes.rb +7 -5
- data/lib/simplecov/file_list.rb +38 -36
- data/lib/simplecov/filter.rb +12 -2
- data/lib/simplecov/formatter.rb +2 -2
- data/lib/simplecov/formatter/simple_formatter.rb +1 -1
- data/lib/simplecov/jruby_fix.rb +4 -4
- data/lib/simplecov/last_run.rb +15 -13
- data/lib/simplecov/merge_helpers.rb +26 -27
- data/lib/simplecov/no_defaults.rb +2 -2
- data/lib/simplecov/profiles.rb +21 -19
- data/lib/simplecov/railtie.rb +1 -1
- data/lib/simplecov/railties/tasks.rake +7 -7
- data/lib/simplecov/result.rb +5 -5
- data/lib/simplecov/result_merger.rb +65 -62
- data/lib/simplecov/source_file.rb +23 -24
- data/lib/simplecov/version.rb +20 -1
- data/simplecov.gemspec +14 -12
- data/test/faked_project/Gemfile +5 -5
- data/test/faked_project/Rakefile +4 -4
- data/test/faked_project/features/step_definitions/my_steps.rb +3 -4
- data/test/faked_project/features/support/env.rb +5 -5
- data/test/faked_project/lib/faked_project.rb +1 -1
- data/test/faked_project/lib/faked_project/some_class.rb +3 -4
- data/test/faked_project/spec/faked_spec.rb +2 -2
- data/test/faked_project/spec/forking_spec.rb +7 -0
- data/test/faked_project/spec/meta_magic_spec.rb +1 -1
- data/test/faked_project/spec/some_class_spec.rb +3 -3
- data/test/faked_project/spec/spec_helper.rb +4 -8
- data/test/faked_project/test/faked_test.rb +2 -2
- data/test/faked_project/test/meta_magic_test.rb +1 -1
- data/test/faked_project/test/some_class_test.rb +3 -3
- data/test/faked_project/test/test_helper.rb +5 -9
- data/test/fixtures/app/controllers/sample_controller.rb +1 -1
- data/test/fixtures/app/models/user.rb +1 -1
- data/test/fixtures/deleted_source_sample.rb +3 -3
- data/test/fixtures/frameworks/rspec_bad.rb +4 -4
- data/test/fixtures/frameworks/rspec_good.rb +4 -4
- data/test/fixtures/frameworks/testunit_bad.rb +3 -3
- data/test/fixtures/frameworks/testunit_good.rb +3 -3
- data/test/fixtures/resultset2.rb +0 -1
- data/test/fixtures/sample.rb +1 -1
- data/test/fixtures/utf-8.rb +1 -1
- data/test/helper.rb +8 -8
- data/test/test_1_8_fallbacks.rb +6 -6
- data/test/test_command_guesser.rb +7 -7
- data/test/test_deleted_source.rb +2 -2
- data/test/test_file_list.rb +8 -6
- data/test/test_filters.rb +29 -13
- data/test/test_merge_helpers.rb +26 -23
- data/test/test_result.rb +32 -23
- data/test/test_return_codes.rb +3 -3
- data/test/test_source_file.rb +4 -4
- data/test/test_source_file_line.rb +13 -13
- metadata +145 -63
- data/lib/simplecov/json.rb +0 -27
data/test/test_merge_helpers.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require "helper"
|
2
2
|
|
3
3
|
class TestMergeHelpers < Minitest::Test
|
4
4
|
def self.test_order
|
@@ -8,15 +8,19 @@ class TestMergeHelpers < Minitest::Test
|
|
8
8
|
context "With two faked coverage resultsets" do
|
9
9
|
setup do
|
10
10
|
SimpleCov.use_merging true
|
11
|
-
@resultset1 = {
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
11
|
+
@resultset1 = {
|
12
|
+
source_fixture("sample.rb") => [nil, 1, 1, 1, nil, nil, 1, 1, nil, nil],
|
13
|
+
source_fixture("app/models/user.rb") => [nil, 1, 1, 1, nil, nil, 1, 0, nil, nil],
|
14
|
+
source_fixture("app/controllers/sample_controller.rb") => [nil, 1, 1, 1, nil, nil, 1, 0, nil, nil],
|
15
|
+
source_fixture("resultset1.rb") => [1, 1, 1, 1],
|
16
|
+
}
|
17
|
+
|
18
|
+
@resultset2 = {
|
19
|
+
source_fixture("sample.rb") => [1, nil, 1, 1, nil, nil, 1, 1, nil, nil],
|
20
|
+
source_fixture("app/models/user.rb") => [nil, 1, 5, 1, nil, nil, 1, 0, nil, nil],
|
21
|
+
source_fixture("app/controllers/sample_controller.rb") => [nil, 3, 1, nil, nil, nil, 1, 0, nil, nil],
|
22
|
+
source_fixture("resultset2.rb") => [nil, 1, 1, nil],
|
23
|
+
}
|
20
24
|
end
|
21
25
|
|
22
26
|
context "a merge" do
|
@@ -25,36 +29,36 @@ class TestMergeHelpers < Minitest::Test
|
|
25
29
|
end
|
26
30
|
|
27
31
|
should "have proper results for sample.rb" do
|
28
|
-
assert_equal [1, 1, 2, 2, nil, nil, 2, 2, nil, nil], @merged[source_fixture(
|
32
|
+
assert_equal [1, 1, 2, 2, nil, nil, 2, 2, nil, nil], @merged[source_fixture("sample.rb")]
|
29
33
|
end
|
30
34
|
|
31
35
|
should "have proper results for user.rb" do
|
32
|
-
assert_equal [nil, 2, 6, 2, nil, nil, 2, 0, nil, nil], @merged[source_fixture(
|
36
|
+
assert_equal [nil, 2, 6, 2, nil, nil, 2, 0, nil, nil], @merged[source_fixture("app/models/user.rb")]
|
33
37
|
end
|
34
38
|
|
35
39
|
should "have proper results for sample_controller.rb" do
|
36
|
-
assert_equal [nil, 4, 2, 1, nil, nil, 2, 0, nil, nil], @merged[source_fixture(
|
40
|
+
assert_equal [nil, 4, 2, 1, nil, nil, 2, 0, nil, nil], @merged[source_fixture("app/controllers/sample_controller.rb")]
|
37
41
|
end
|
38
42
|
|
39
43
|
should "have proper results for resultset1.rb" do
|
40
|
-
assert_equal [1, 1, 1, 1], @merged[source_fixture(
|
44
|
+
assert_equal [1, 1, 1, 1], @merged[source_fixture("resultset1.rb")]
|
41
45
|
end
|
42
46
|
|
43
47
|
should "have proper results for resultset2.rb" do
|
44
|
-
assert_equal [nil, 1, 1, nil], @merged[source_fixture(
|
48
|
+
assert_equal [nil, 1, 1, nil], @merged[source_fixture("resultset2.rb")]
|
45
49
|
end
|
46
50
|
end
|
47
51
|
|
48
52
|
# See Github issue #6
|
49
53
|
should "return an empty hash when the resultset cache file is empty" do
|
50
|
-
File.open(SimpleCov::ResultMerger.resultset_path, "w+") {|f| f.puts ""}
|
51
|
-
|
54
|
+
File.open(SimpleCov::ResultMerger.resultset_path, "w+") { |f| f.puts "" }
|
55
|
+
assert_empty SimpleCov::ResultMerger.resultset
|
52
56
|
end
|
53
57
|
|
54
58
|
# See Github issue #6
|
55
59
|
should "return an empty hash when the resultset cache file is not present" do
|
56
60
|
system "rm #{SimpleCov::ResultMerger.resultset_path}" if File.exist?(SimpleCov::ResultMerger.resultset_path)
|
57
|
-
|
61
|
+
assert_empty SimpleCov::ResultMerger.resultset
|
58
62
|
end
|
59
63
|
|
60
64
|
context "and results generated from those" do
|
@@ -72,21 +76,21 @@ class TestMergeHelpers < Minitest::Test
|
|
72
76
|
assert SimpleCov::ResultMerger.store_result(@result2)
|
73
77
|
end
|
74
78
|
|
75
|
-
should "have stored data in resultset_path
|
79
|
+
should "have stored data in resultset_path JSON file" do
|
76
80
|
assert File.readlines(SimpleCov::ResultMerger.resultset_path).length > 50
|
77
81
|
end
|
78
82
|
|
79
83
|
should "return a hash containing keys ['result1' and 'result2'] for resultset" do
|
80
|
-
assert_equal
|
84
|
+
assert_equal %w(result1 result2), SimpleCov::ResultMerger.resultset.keys.sort
|
81
85
|
end
|
82
86
|
|
83
87
|
should "return proper values for merged_result" do
|
84
|
-
assert_equal [nil, 2, 6, 2, nil, nil, 2, 0, nil, nil], SimpleCov::ResultMerger.merged_result.source_files.find {|s| s.filename =~ /user/}.lines.map(&:coverage)
|
88
|
+
assert_equal [nil, 2, 6, 2, nil, nil, 2, 0, nil, nil], SimpleCov::ResultMerger.merged_result.source_files.find { |s| s.filename =~ /user/ }.lines.map(&:coverage)
|
85
89
|
end
|
86
90
|
|
87
91
|
context "with second result way above the merge_timeout" do
|
88
92
|
setup do
|
89
|
-
@result2.created_at = Time.now -
|
93
|
+
@result2.created_at = Time.now - 172_800 # two days ago
|
90
94
|
assert SimpleCov::ResultMerger.store_result(@result2)
|
91
95
|
end
|
92
96
|
|
@@ -103,7 +107,6 @@ class TestMergeHelpers < Minitest::Test
|
|
103
107
|
end
|
104
108
|
end
|
105
109
|
end
|
106
|
-
|
107
110
|
end
|
108
111
|
end
|
109
112
|
end if SimpleCov.usable?
|
data/test/test_result.rb
CHANGED
@@ -1,14 +1,23 @@
|
|
1
|
-
require
|
1
|
+
require "helper"
|
2
2
|
|
3
|
-
class TestResult < Minitest::Test
|
3
|
+
class TestResult < Minitest::Test # rubocop:disable Metrics/ClassLength
|
4
4
|
context "With a (mocked) Coverage.result" do
|
5
5
|
setup do
|
6
|
-
SimpleCov.filters
|
7
|
-
SimpleCov.groups
|
8
|
-
SimpleCov.formatter = nil
|
9
|
-
|
10
|
-
|
11
|
-
|
6
|
+
@prev_filters, SimpleCov.filters = SimpleCov.filters, []
|
7
|
+
@prev_groups, SimpleCov.groups = SimpleCov.groups, {}
|
8
|
+
@prev_formatter, SimpleCov.formatter = SimpleCov.formatter, nil
|
9
|
+
|
10
|
+
@original_result = {
|
11
|
+
source_fixture("sample.rb") => [nil, 1, 1, 1, nil, nil, 1, 1, nil, nil],
|
12
|
+
source_fixture("app/models/user.rb") => [nil, 1, 1, 1, nil, nil, 1, 0, nil, nil],
|
13
|
+
source_fixture("app/controllers/sample_controller.rb") => [nil, 1, 1, 1, nil, nil, 1, 0, nil, nil],
|
14
|
+
}
|
15
|
+
end
|
16
|
+
|
17
|
+
teardown do
|
18
|
+
SimpleCov.filters = @prev_filters
|
19
|
+
SimpleCov.groups = @prev_groups
|
20
|
+
SimpleCov.formatter = @prev_formatter
|
12
21
|
end
|
13
22
|
|
14
23
|
context "a simple cov result initialized from that" do
|
@@ -20,7 +29,7 @@ class TestResult < Minitest::Test
|
|
20
29
|
|
21
30
|
should "have 3 source files" do
|
22
31
|
assert_equal 3, @result.source_files.count
|
23
|
-
assert @result.source_files.all? {|s| s.instance_of?(SimpleCov::SourceFile)}, "Not all instances are of SimpleCov::SourceFile type"
|
32
|
+
assert @result.source_files.all? { |s| s.instance_of?(SimpleCov::SourceFile) }, "Not all instances are of SimpleCov::SourceFile type"
|
24
33
|
end
|
25
34
|
|
26
35
|
should "return an instance of SimpleCov::FileList for source_files and files" do
|
@@ -34,7 +43,7 @@ class TestResult < Minitest::Test
|
|
34
43
|
|
35
44
|
should "have accurate covered percent" do
|
36
45
|
# in our fixture, there are 13 covered line (result in 1) in all 15 relevant line (result in non-nil)
|
37
|
-
assert_equal 100.0*13/15, @result.covered_percent
|
46
|
+
assert_equal 100.0 * 13 / 15, @result.covered_percent
|
38
47
|
end
|
39
48
|
|
40
49
|
[:covered_percent, :covered_strength, :covered_lines, :missed_lines, :total_lines].each do |msg|
|
@@ -47,7 +56,7 @@ class TestResult < Minitest::Test
|
|
47
56
|
setup { @hash = @result.to_hash }
|
48
57
|
should("be a hash") { assert_equal Hash, @hash.class }
|
49
58
|
|
50
|
-
context "loaded back with
|
59
|
+
context "loaded back with from_hash" do
|
51
60
|
setup { @dumped_result = SimpleCov::Result.from_hash(@hash) }
|
52
61
|
|
53
62
|
should "have 3 source files" do
|
@@ -75,7 +84,7 @@ class TestResult < Minitest::Test
|
|
75
84
|
|
76
85
|
context "with some filters set up" do
|
77
86
|
setup do
|
78
|
-
SimpleCov.add_filter
|
87
|
+
SimpleCov.add_filter "sample.rb"
|
79
88
|
end
|
80
89
|
|
81
90
|
should "have 2 files in a new simple cov result" do
|
@@ -89,10 +98,10 @@ class TestResult < Minitest::Test
|
|
89
98
|
|
90
99
|
context "with groups set up for all files" do
|
91
100
|
setup do
|
92
|
-
SimpleCov.add_group
|
93
|
-
SimpleCov.add_group
|
94
|
-
SimpleCov.add_group
|
95
|
-
File.basename(src_file.filename) ==
|
101
|
+
SimpleCov.add_group "Models", "app/models"
|
102
|
+
SimpleCov.add_group "Controllers", ["app/controllers"]
|
103
|
+
SimpleCov.add_group "Other" do |src_file|
|
104
|
+
File.basename(src_file.filename) == "sample.rb"
|
96
105
|
end
|
97
106
|
@result = SimpleCov::Result.new(@original_result)
|
98
107
|
end
|
@@ -102,15 +111,15 @@ class TestResult < Minitest::Test
|
|
102
111
|
end
|
103
112
|
|
104
113
|
should "have user.rb in 'Models' group" do
|
105
|
-
assert_equal
|
114
|
+
assert_equal "user.rb", File.basename(@result.groups["Models"].first.filename)
|
106
115
|
end
|
107
116
|
|
108
117
|
should "have sample_controller.rb in 'Controllers' group" do
|
109
|
-
assert_equal
|
118
|
+
assert_equal "sample_controller.rb", File.basename(@result.groups["Controllers"].first.filename)
|
110
119
|
end
|
111
120
|
|
112
121
|
context "and simple formatter being used" do
|
113
|
-
setup {SimpleCov.formatter = SimpleCov::Formatter::SimpleFormatter}
|
122
|
+
setup { SimpleCov.formatter = SimpleCov::Formatter::SimpleFormatter }
|
114
123
|
|
115
124
|
should "return a formatted string with result.format!" do
|
116
125
|
assert_equal String, @result.format!.class
|
@@ -136,8 +145,8 @@ class TestResult < Minitest::Test
|
|
136
145
|
context "with groups set up that do not match all files" do
|
137
146
|
setup do
|
138
147
|
SimpleCov.configure do
|
139
|
-
add_group
|
140
|
-
add_group
|
148
|
+
add_group "Models", "app/models"
|
149
|
+
add_group "Controllers", "app/controllers"
|
141
150
|
end
|
142
151
|
@result = SimpleCov::Result.new(@original_result)
|
143
152
|
end
|
@@ -153,11 +162,11 @@ class TestResult < Minitest::Test
|
|
153
162
|
end
|
154
163
|
|
155
164
|
should "have sample.rb in 'Ungrouped' group" do
|
156
|
-
assert_equal
|
165
|
+
assert_equal "sample.rb", File.basename(@result.groups["Ungrouped"].first.filename)
|
157
166
|
end
|
158
167
|
|
159
168
|
should "return all groups as instances of SimpleCov::FileList" do
|
160
|
-
@result.groups.
|
169
|
+
@result.groups.each_value do |files|
|
161
170
|
assert_equal SimpleCov::FileList, files.class
|
162
171
|
end
|
163
172
|
end
|
data/test/test_return_codes.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require "helper"
|
2
2
|
|
3
3
|
# Make sure that exit codes of tests are propagated properly when using
|
4
4
|
# simplecov. See github issue #5
|
@@ -10,8 +10,8 @@ class TestReturnCodes < Minitest::Test
|
|
10
10
|
context "Inside fixtures/frameworks" do
|
11
11
|
setup do
|
12
12
|
@current_dir = Dir.getwd
|
13
|
-
Dir.chdir(File.join(File.dirname(__FILE__),
|
14
|
-
FileUtils.rm_rf(
|
13
|
+
Dir.chdir(File.join(File.dirname(__FILE__), "fixtures", "frameworks"))
|
14
|
+
FileUtils.rm_rf("./coverage")
|
15
15
|
end
|
16
16
|
|
17
17
|
should "have return code 0 when running testunit_good.rb" do
|
data/test/test_source_file.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
require
|
1
|
+
require "helper"
|
2
2
|
|
3
3
|
class TestSourceFile < Minitest::Test
|
4
4
|
COVERAGE_FOR_SAMPLE_RB = [nil, 1, 1, 1, nil, nil, 1, 0, nil, nil, nil, nil, nil, nil, nil, nil]
|
5
5
|
context "A source file initialized with some coverage data" do
|
6
6
|
setup do
|
7
|
-
@source_file = SimpleCov::SourceFile.new(source_fixture(
|
7
|
+
@source_file = SimpleCov::SourceFile.new(source_fixture("sample.rb"), COVERAGE_FOR_SAMPLE_RB)
|
8
8
|
end
|
9
9
|
|
10
10
|
should "have a filename" do
|
@@ -24,7 +24,7 @@ class TestSourceFile < Minitest::Test
|
|
24
24
|
end
|
25
25
|
|
26
26
|
should "have all source lines of type SimpleCov::SourceFile::Line" do
|
27
|
-
assert @source_file.lines.all? {|l| l.instance_of?(SimpleCov::SourceFile::Line)}
|
27
|
+
assert @source_file.lines.all? { |l| l.instance_of?(SimpleCov::SourceFile::Line) }
|
28
28
|
end
|
29
29
|
|
30
30
|
should "have 'class Foo' as line(2).source" do
|
@@ -54,7 +54,7 @@ class TestSourceFile < Minitest::Test
|
|
54
54
|
|
55
55
|
context "Simulating potential Ruby 1.9 defect -- see Issue #56" do
|
56
56
|
setup do
|
57
|
-
@source_file = SimpleCov::SourceFile.new(source_fixture(
|
57
|
+
@source_file = SimpleCov::SourceFile.new(source_fixture("sample.rb"), COVERAGE_FOR_SAMPLE_RB + [nil])
|
58
58
|
end
|
59
59
|
|
60
60
|
should "have 16 source lines regardless of extra data in coverage array" do
|
@@ -1,25 +1,25 @@
|
|
1
|
-
require
|
1
|
+
require "helper"
|
2
2
|
|
3
3
|
class TestSourceFileLine < Minitest::Test
|
4
4
|
context "A source line" do
|
5
5
|
setup do
|
6
|
-
@line = SimpleCov::SourceFile::Line.new(
|
6
|
+
@line = SimpleCov::SourceFile::Line.new("# the ruby source", 5, 3)
|
7
7
|
end
|
8
8
|
subject { @line }
|
9
9
|
|
10
10
|
should 'return "# the ruby source" as src' do
|
11
|
-
assert_equal
|
11
|
+
assert_equal "# the ruby source", @line.src
|
12
12
|
end
|
13
13
|
|
14
|
-
should
|
14
|
+
should "return the same for source as for src" do
|
15
15
|
assert_equal @line.src, @line.source
|
16
16
|
end
|
17
17
|
|
18
|
-
should
|
18
|
+
should "have line number 5" do
|
19
19
|
assert_equal 5, @line.line_number
|
20
20
|
end
|
21
21
|
|
22
|
-
should
|
22
|
+
should "have equal line_number, line and number" do
|
23
23
|
assert_equal @line.line_number, @line.line
|
24
24
|
assert_equal @line.line_number, @line.number
|
25
25
|
end
|
@@ -31,13 +31,13 @@ class TestSourceFileLine < Minitest::Test
|
|
31
31
|
should_be :skipped?
|
32
32
|
should_not_be :missed?
|
33
33
|
should_not_be :never?
|
34
|
-
should_have :status,
|
34
|
+
should_have :status, "skipped"
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
38
|
context "A source line with coverage" do
|
39
39
|
setup do
|
40
|
-
@line = SimpleCov::SourceFile::Line.new(
|
40
|
+
@line = SimpleCov::SourceFile::Line.new("# the ruby source", 5, 3)
|
41
41
|
end
|
42
42
|
subject { @line }
|
43
43
|
|
@@ -49,12 +49,12 @@ class TestSourceFileLine < Minitest::Test
|
|
49
49
|
should_not_be :skipped?
|
50
50
|
should_not_be :missed?
|
51
51
|
should_not_be :never?
|
52
|
-
should_have :status,
|
52
|
+
should_have :status, "covered"
|
53
53
|
end
|
54
54
|
|
55
55
|
context "A source line without coverage" do
|
56
56
|
setup do
|
57
|
-
@line = SimpleCov::SourceFile::Line.new(
|
57
|
+
@line = SimpleCov::SourceFile::Line.new("# the ruby source", 5, 0)
|
58
58
|
end
|
59
59
|
subject { @line }
|
60
60
|
|
@@ -66,12 +66,12 @@ class TestSourceFileLine < Minitest::Test
|
|
66
66
|
should_not_be :skipped?
|
67
67
|
should_be :missed?
|
68
68
|
should_not_be :never?
|
69
|
-
should_have :status,
|
69
|
+
should_have :status, "missed"
|
70
70
|
end
|
71
71
|
|
72
72
|
context "A source line with no code" do
|
73
73
|
setup do
|
74
|
-
@line = SimpleCov::SourceFile::Line.new(
|
74
|
+
@line = SimpleCov::SourceFile::Line.new("# the ruby source", 5, nil)
|
75
75
|
end
|
76
76
|
subject { @line }
|
77
77
|
|
@@ -83,7 +83,7 @@ class TestSourceFileLine < Minitest::Test
|
|
83
83
|
should_not_be :skipped?
|
84
84
|
should_not_be :missed?
|
85
85
|
should_be :never?
|
86
|
-
should_have :status,
|
86
|
+
should_have :status, "never"
|
87
87
|
end
|
88
88
|
|
89
89
|
should "raise ArgumentError when initialized with invalid src" do
|
metadata
CHANGED
@@ -1,69 +1,70 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: simplecov
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
3
|
+
version: &id002 !ruby/object:Gem::Version
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
|
-
authors:
|
6
|
+
authors:
|
7
7
|
- Christoph Olszowka
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.0'
|
11
|
+
|
12
|
+
date: 2015-04-18 00:00:00 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
20
15
|
type: :runtime
|
16
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ~>
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: "1.8"
|
21
|
+
requirement: *id001
|
22
|
+
prerelease: false
|
23
|
+
name: json
|
24
|
+
- !ruby/object:Gem::Dependency
|
25
|
+
type: :runtime
|
26
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
27
|
+
requirements:
|
28
|
+
- - ~>
|
29
|
+
- *id002
|
30
|
+
requirement: *id003
|
21
31
|
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '1.0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
32
|
name: simplecov-html
|
29
|
-
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 0.9.0
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
34
|
type: :runtime
|
35
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ~>
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: 1.1.0
|
40
|
+
requirement: *id004
|
35
41
|
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 0.9.0
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
42
|
name: docile
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
43
|
+
- !ruby/object:Gem::Dependency
|
44
|
+
type: :development
|
45
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ~>
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: "1.9"
|
50
|
+
requirement: *id005
|
49
51
|
prerelease: false
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: 1.1.0
|
55
|
-
description: Code coverage for Ruby 1.9+ with a powerful configuration library and
|
56
|
-
automatic merging of coverage across test suites
|
57
|
-
email:
|
52
|
+
name: bundler
|
53
|
+
description: Code coverage for Ruby 1.9+ with a powerful configuration library and automatic merging of coverage across test suites
|
54
|
+
email:
|
58
55
|
- christoph at olszowka de
|
59
56
|
executables: []
|
57
|
+
|
60
58
|
extensions: []
|
59
|
+
|
61
60
|
extra_rdoc_files: []
|
62
|
-
|
63
|
-
|
64
|
-
-
|
65
|
-
-
|
66
|
-
-
|
61
|
+
|
62
|
+
files:
|
63
|
+
- .gitignore
|
64
|
+
- .rspec
|
65
|
+
- .rubocop.yml
|
66
|
+
- .travis.yml
|
67
|
+
- .yardopts
|
67
68
|
- CHANGELOG.md
|
68
69
|
- CONTRIBUTING.md
|
69
70
|
- Gemfile
|
@@ -71,6 +72,9 @@ files:
|
|
71
72
|
- README.md
|
72
73
|
- Rakefile
|
73
74
|
- cucumber.yml
|
75
|
+
- doc/alternate-formatters.md
|
76
|
+
- doc/commercial-services.md
|
77
|
+
- doc/editor-integration.md
|
74
78
|
- features/config_autoload.feature
|
75
79
|
- features/config_command_name.feature
|
76
80
|
- features/config_coverage_dir.feature
|
@@ -115,7 +119,6 @@ files:
|
|
115
119
|
- lib/simplecov/formatter/multi_formatter.rb
|
116
120
|
- lib/simplecov/formatter/simple_formatter.rb
|
117
121
|
- lib/simplecov/jruby_fix.rb
|
118
|
-
- lib/simplecov/json.rb
|
119
122
|
- lib/simplecov/last_run.rb
|
120
123
|
- lib/simplecov/merge_helpers.rb
|
121
124
|
- lib/simplecov/no_defaults.rb
|
@@ -138,6 +141,7 @@ files:
|
|
138
141
|
- test/faked_project/lib/faked_project/meta_magic.rb
|
139
142
|
- test/faked_project/lib/faked_project/some_class.rb
|
140
143
|
- test/faked_project/spec/faked_spec.rb
|
144
|
+
- test/faked_project/spec/forking_spec.rb
|
141
145
|
- test/faked_project/spec/meta_magic_spec.rb
|
142
146
|
- test/faked_project/spec/some_class_spec.rb
|
143
147
|
- test/faked_project/spec/spec_helper.rb
|
@@ -170,28 +174,106 @@ files:
|
|
170
174
|
- test/test_source_file.rb
|
171
175
|
- test/test_source_file_line.rb
|
172
176
|
homepage: http://github.com/colszowka/simplecov
|
173
|
-
licenses:
|
177
|
+
licenses:
|
174
178
|
- MIT
|
175
179
|
metadata: {}
|
180
|
+
|
176
181
|
post_install_message:
|
177
182
|
rdoc_options: []
|
178
|
-
|
183
|
+
|
184
|
+
require_paths:
|
179
185
|
- lib
|
180
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
181
|
-
requirements:
|
186
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
187
|
+
requirements:
|
182
188
|
- - ">="
|
183
|
-
- !ruby/object:Gem::Version
|
189
|
+
- !ruby/object:Gem::Version
|
184
190
|
version: 1.8.7
|
185
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
186
|
-
requirements:
|
191
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
192
|
+
requirements:
|
187
193
|
- - ">="
|
188
|
-
- !ruby/object:Gem::Version
|
189
|
-
version:
|
194
|
+
- !ruby/object:Gem::Version
|
195
|
+
version: "0"
|
190
196
|
requirements: []
|
197
|
+
|
191
198
|
rubyforge_project:
|
192
|
-
rubygems_version: 2.4.
|
199
|
+
rubygems_version: 2.4.6
|
193
200
|
signing_key:
|
194
201
|
specification_version: 4
|
195
|
-
summary: Code coverage for Ruby 1.9+ with a powerful configuration library and automatic
|
196
|
-
|
197
|
-
|
202
|
+
summary: Code coverage for Ruby 1.9+ with a powerful configuration library and automatic merging of coverage across test suites
|
203
|
+
test_files:
|
204
|
+
- features/config_autoload.feature
|
205
|
+
- features/config_command_name.feature
|
206
|
+
- features/config_coverage_dir.feature
|
207
|
+
- features/config_deactivate_merging.feature
|
208
|
+
- features/config_formatters.feature
|
209
|
+
- features/config_merge_timeout.feature
|
210
|
+
- features/config_nocov_token.feature
|
211
|
+
- features/config_profiles.feature
|
212
|
+
- features/config_project_name.feature
|
213
|
+
- features/config_styles.feature
|
214
|
+
- features/cucumber_basic.feature
|
215
|
+
- features/maximum_coverage_drop.feature
|
216
|
+
- features/merging_test_unit_and_rspec.feature
|
217
|
+
- features/minimum_coverage.feature
|
218
|
+
- features/refuse_coverage_drop.feature
|
219
|
+
- features/rspec_basic.feature
|
220
|
+
- features/rspec_fails_on_initialization.feature
|
221
|
+
- features/rspec_groups_and_filters_basic.feature
|
222
|
+
- features/rspec_groups_and_filters_complex.feature
|
223
|
+
- features/rspec_groups_using_filter_class.feature
|
224
|
+
- features/rspec_without_simplecov.feature
|
225
|
+
- features/skipping_code_blocks_manually.feature
|
226
|
+
- features/step_definitions/html_steps.rb
|
227
|
+
- features/step_definitions/simplecov_steps.rb
|
228
|
+
- features/step_definitions/transformers.rb
|
229
|
+
- features/step_definitions/web_steps.rb
|
230
|
+
- features/support/env.rb
|
231
|
+
- features/test_unit_basic.feature
|
232
|
+
- features/test_unit_groups_and_filters_basic.feature
|
233
|
+
- features/test_unit_groups_and_filters_complex.feature
|
234
|
+
- features/test_unit_groups_using_filter_class.feature
|
235
|
+
- features/test_unit_without_simplecov.feature
|
236
|
+
- features/unicode_compatiblity.feature
|
237
|
+
- test/faked_project/Gemfile
|
238
|
+
- test/faked_project/Rakefile
|
239
|
+
- test/faked_project/cucumber.yml
|
240
|
+
- test/faked_project/features/step_definitions/my_steps.rb
|
241
|
+
- test/faked_project/features/support/env.rb
|
242
|
+
- test/faked_project/features/test_stuff.feature
|
243
|
+
- test/faked_project/lib/faked_project.rb
|
244
|
+
- test/faked_project/lib/faked_project/framework_specific.rb
|
245
|
+
- test/faked_project/lib/faked_project/meta_magic.rb
|
246
|
+
- test/faked_project/lib/faked_project/some_class.rb
|
247
|
+
- test/faked_project/spec/faked_spec.rb
|
248
|
+
- test/faked_project/spec/forking_spec.rb
|
249
|
+
- test/faked_project/spec/meta_magic_spec.rb
|
250
|
+
- test/faked_project/spec/some_class_spec.rb
|
251
|
+
- test/faked_project/spec/spec_helper.rb
|
252
|
+
- test/faked_project/test/faked_test.rb
|
253
|
+
- test/faked_project/test/meta_magic_test.rb
|
254
|
+
- test/faked_project/test/some_class_test.rb
|
255
|
+
- test/faked_project/test/test_helper.rb
|
256
|
+
- test/fixtures/app/controllers/sample_controller.rb
|
257
|
+
- test/fixtures/app/models/user.rb
|
258
|
+
- test/fixtures/deleted_source_sample.rb
|
259
|
+
- test/fixtures/frameworks/rspec_bad.rb
|
260
|
+
- test/fixtures/frameworks/rspec_good.rb
|
261
|
+
- test/fixtures/frameworks/testunit_bad.rb
|
262
|
+
- test/fixtures/frameworks/testunit_good.rb
|
263
|
+
- test/fixtures/iso-8859.rb
|
264
|
+
- test/fixtures/resultset1.rb
|
265
|
+
- test/fixtures/resultset2.rb
|
266
|
+
- test/fixtures/sample.rb
|
267
|
+
- test/fixtures/utf-8.rb
|
268
|
+
- test/helper.rb
|
269
|
+
- test/shoulda_macros.rb
|
270
|
+
- test/test_1_8_fallbacks.rb
|
271
|
+
- test/test_command_guesser.rb
|
272
|
+
- test/test_deleted_source.rb
|
273
|
+
- test/test_file_list.rb
|
274
|
+
- test/test_filters.rb
|
275
|
+
- test/test_merge_helpers.rb
|
276
|
+
- test/test_result.rb
|
277
|
+
- test/test_return_codes.rb
|
278
|
+
- test/test_source_file.rb
|
279
|
+
- test/test_source_file_line.rb
|