simplecov 0.6.0 → 0.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (131) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +163 -80
  3. data/LICENSE +1 -1
  4. data/README.md +776 -277
  5. data/doc/alternate-formatters.md +71 -0
  6. data/doc/commercial-services.md +25 -0
  7. data/doc/editor-integration.md +18 -0
  8. data/lib/minitest/simplecov_plugin.rb +15 -0
  9. data/lib/simplecov/combine/branches_combiner.rb +32 -0
  10. data/lib/simplecov/combine/files_combiner.rb +24 -0
  11. data/lib/simplecov/combine/lines_combiner.rb +43 -0
  12. data/lib/simplecov/combine/results_combiner.rb +60 -0
  13. data/lib/simplecov/combine.rb +30 -0
  14. data/lib/simplecov/command_guesser.rb +53 -38
  15. data/lib/simplecov/configuration.rb +478 -193
  16. data/lib/simplecov/coverage_statistics.rb +56 -0
  17. data/lib/simplecov/default_formatter.rb +20 -0
  18. data/lib/simplecov/defaults.rb +40 -44
  19. data/lib/simplecov/exit_codes/exit_code_handling.rb +29 -0
  20. data/lib/simplecov/exit_codes/maximum_coverage_drop_check.rb +83 -0
  21. data/lib/simplecov/exit_codes/minimum_coverage_by_file_check.rb +54 -0
  22. data/lib/simplecov/exit_codes/minimum_overall_coverage_check.rb +53 -0
  23. data/lib/simplecov/exit_codes.rb +15 -0
  24. data/lib/simplecov/file_list.rb +112 -36
  25. data/lib/simplecov/filter.rb +54 -4
  26. data/lib/simplecov/formatter/multi_formatter.rb +32 -0
  27. data/lib/simplecov/formatter/simple_formatter.rb +21 -15
  28. data/lib/simplecov/formatter.rb +4 -1
  29. data/lib/simplecov/last_run.rb +28 -0
  30. data/lib/simplecov/lines_classifier.rb +48 -0
  31. data/lib/simplecov/load_global_config.rb +8 -0
  32. data/lib/simplecov/no_defaults.rb +4 -0
  33. data/lib/simplecov/process.rb +19 -0
  34. data/lib/simplecov/profiles/bundler_filter.rb +5 -0
  35. data/lib/simplecov/profiles/hidden_filter.rb +5 -0
  36. data/lib/simplecov/profiles/rails.rb +18 -0
  37. data/lib/simplecov/profiles/root_filter.rb +10 -0
  38. data/lib/simplecov/profiles/test_frameworks.rb +8 -0
  39. data/lib/simplecov/profiles.rb +35 -0
  40. data/lib/simplecov/result.rb +33 -64
  41. data/lib/simplecov/result_adapter.rb +30 -0
  42. data/lib/simplecov/result_merger.rb +178 -64
  43. data/lib/simplecov/simulate_coverage.rb +29 -0
  44. data/lib/simplecov/source_file/branch.rb +84 -0
  45. data/lib/simplecov/source_file/line.rb +72 -0
  46. data/lib/simplecov/source_file.rb +304 -123
  47. data/lib/simplecov/useless_results_remover.rb +18 -0
  48. data/lib/simplecov/version.rb +4 -2
  49. data/lib/simplecov.rb +396 -49
  50. metadata +81 -242
  51. data/.gitignore +0 -30
  52. data/.rvmrc +0 -1
  53. data/.travis.yml +0 -13
  54. data/Gemfile +0 -9
  55. data/Rakefile +0 -16
  56. data/cucumber.yml +0 -13
  57. data/features/config_adapters.feature +0 -44
  58. data/features/config_autoload.feature +0 -46
  59. data/features/config_command_name.feature +0 -33
  60. data/features/config_coverage_dir.feature +0 -20
  61. data/features/config_deactivate_merging.feature +0 -42
  62. data/features/config_merge_timeout.feature +0 -38
  63. data/features/config_nocov_token.feature +0 -79
  64. data/features/config_project_name.feature +0 -27
  65. data/features/config_styles.feature +0 -93
  66. data/features/cucumber_basic.feature +0 -29
  67. data/features/merging_test_unit_and_rspec.feature +0 -44
  68. data/features/rspec_basic.feature +0 -31
  69. data/features/rspec_fails_on_initialization.feature +0 -14
  70. data/features/rspec_groups_and_filters_basic.feature +0 -29
  71. data/features/rspec_groups_and_filters_complex.feature +0 -35
  72. data/features/rspec_groups_using_filter_class.feature +0 -40
  73. data/features/rspec_without_simplecov.feature +0 -20
  74. data/features/skipping_code_blocks_manually.feature +0 -70
  75. data/features/step_definitions/html_steps.rb +0 -45
  76. data/features/step_definitions/simplecov_steps.rb +0 -61
  77. data/features/step_definitions/transformers.rb +0 -13
  78. data/features/step_definitions/web_steps.rb +0 -64
  79. data/features/support/env.rb +0 -26
  80. data/features/test_unit_basic.feature +0 -34
  81. data/features/test_unit_groups_and_filters_basic.feature +0 -29
  82. data/features/test_unit_groups_and_filters_complex.feature +0 -35
  83. data/features/test_unit_groups_using_filter_class.feature +0 -40
  84. data/features/test_unit_without_simplecov.feature +0 -20
  85. data/features/unicode_compatiblity.feature +0 -67
  86. data/lib/simplecov/adapters.rb +0 -29
  87. data/lib/simplecov/merge_helpers.rb +0 -39
  88. data/lib/simplecov/railtie.rb +0 -7
  89. data/lib/simplecov/railties/tasks.rake +0 -11
  90. data/simplecov.gemspec +0 -28
  91. data/test/faked_project/Gemfile +0 -6
  92. data/test/faked_project/Rakefile +0 -8
  93. data/test/faked_project/cucumber.yml +0 -13
  94. data/test/faked_project/features/step_definitions/my_steps.rb +0 -23
  95. data/test/faked_project/features/support/env.rb +0 -12
  96. data/test/faked_project/features/test_stuff.feature +0 -6
  97. data/test/faked_project/lib/faked_project/framework_specific.rb +0 -18
  98. data/test/faked_project/lib/faked_project/meta_magic.rb +0 -24
  99. data/test/faked_project/lib/faked_project/some_class.rb +0 -29
  100. data/test/faked_project/lib/faked_project.rb +0 -11
  101. data/test/faked_project/spec/faked_spec.rb +0 -11
  102. data/test/faked_project/spec/meta_magic_spec.rb +0 -10
  103. data/test/faked_project/spec/some_class_spec.rb +0 -10
  104. data/test/faked_project/spec/spec_helper.rb +0 -15
  105. data/test/faked_project/test/faked_test.rb +0 -11
  106. data/test/faked_project/test/meta_magic_test.rb +0 -13
  107. data/test/faked_project/test/some_class_test.rb +0 -15
  108. data/test/faked_project/test/test_helper.rb +0 -16
  109. data/test/fixtures/app/controllers/sample_controller.rb +0 -10
  110. data/test/fixtures/app/models/user.rb +0 -10
  111. data/test/fixtures/deleted_source_sample.rb +0 -15
  112. data/test/fixtures/frameworks/rspec_bad.rb +0 -9
  113. data/test/fixtures/frameworks/rspec_good.rb +0 -9
  114. data/test/fixtures/frameworks/testunit_bad.rb +0 -9
  115. data/test/fixtures/frameworks/testunit_good.rb +0 -9
  116. data/test/fixtures/resultset1.rb +0 -4
  117. data/test/fixtures/resultset2.rb +0 -5
  118. data/test/fixtures/sample.rb +0 -16
  119. data/test/fixtures/utf-8.rb +0 -3
  120. data/test/helper.rb +0 -35
  121. data/test/shoulda_macros.rb +0 -29
  122. data/test/test_1_8_fallbacks.rb +0 -33
  123. data/test/test_command_guesser.rb +0 -21
  124. data/test/test_deleted_source.rb +0 -16
  125. data/test/test_file_list.rb +0 -24
  126. data/test/test_filters.rb +0 -80
  127. data/test/test_merge_helpers.rb +0 -107
  128. data/test/test_result.rb +0 -147
  129. data/test/test_return_codes.rb +0 -39
  130. data/test/test_source_file.rb +0 -86
  131. data/test/test_source_file_line.rb +0 -110
metadata CHANGED
@@ -1,302 +1,141 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simplecov
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
5
- prerelease:
4
+ version: 0.22.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Christoph Olszowka
9
- autorequire:
8
+ - Tobias Pfeiffer
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-22 00:00:00.000000000 Z
12
+ date: 2022-12-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: multi_json
16
- requirement: &70340785954640 !ruby/object:Gem::Requirement
17
- none: false
15
+ name: docile
16
+ requirement: !ruby/object:Gem::Requirement
18
17
  requirements:
19
- - - ~>
18
+ - - "~>"
20
19
  - !ruby/object:Gem::Version
21
- version: '1.0'
20
+ version: '1.1'
22
21
  type: :runtime
23
22
  prerelease: false
24
- version_requirements: *70340785954640
25
- - !ruby/object:Gem::Dependency
26
- name: simplecov-html
27
- requirement: &70340785954140 !ruby/object:Gem::Requirement
28
- none: false
29
- requirements:
30
- - - ~>
31
- - !ruby/object:Gem::Version
32
- version: 0.5.3
33
- type: :runtime
34
- prerelease: false
35
- version_requirements: *70340785954140
36
- - !ruby/object:Gem::Dependency
37
- name: aruba
38
- requirement: &70340785953760 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
41
- - - ! '>='
42
- - !ruby/object:Gem::Version
43
- version: '0'
44
- type: :development
45
- prerelease: false
46
- version_requirements: *70340785953760
47
- - !ruby/object:Gem::Dependency
48
- name: capybara
49
- requirement: &70340785953300 !ruby/object:Gem::Requirement
50
- none: false
23
+ version_requirements: !ruby/object:Gem::Requirement
51
24
  requirements:
52
- - - ! '>='
25
+ - - "~>"
53
26
  - !ruby/object:Gem::Version
54
- version: '0'
55
- type: :development
56
- prerelease: false
57
- version_requirements: *70340785953300
27
+ version: '1.1'
58
28
  - !ruby/object:Gem::Dependency
59
- name: cucumber
60
- requirement: &70340785952800 !ruby/object:Gem::Requirement
61
- none: false
29
+ name: simplecov-html
30
+ requirement: !ruby/object:Gem::Requirement
62
31
  requirements:
63
- - - ! '>='
32
+ - - "~>"
64
33
  - !ruby/object:Gem::Version
65
- version: 1.1.4
66
- type: :development
34
+ version: '0.11'
35
+ type: :runtime
67
36
  prerelease: false
68
- version_requirements: *70340785952800
69
- - !ruby/object:Gem::Dependency
70
- name: rake
71
- requirement: &70340785952380 !ruby/object:Gem::Requirement
72
- none: false
37
+ version_requirements: !ruby/object:Gem::Requirement
73
38
  requirements:
74
- - - ! '>='
39
+ - - "~>"
75
40
  - !ruby/object:Gem::Version
76
- version: '0'
77
- type: :development
78
- prerelease: false
79
- version_requirements: *70340785952380
41
+ version: '0.11'
80
42
  - !ruby/object:Gem::Dependency
81
- name: rspec
82
- requirement: &70340785951920 !ruby/object:Gem::Requirement
83
- none: false
43
+ name: simplecov_json_formatter
44
+ requirement: !ruby/object:Gem::Requirement
84
45
  requirements:
85
- - - ! '>='
46
+ - - "~>"
86
47
  - !ruby/object:Gem::Version
87
- version: '0'
88
- type: :development
48
+ version: '0.1'
49
+ type: :runtime
89
50
  prerelease: false
90
- version_requirements: *70340785951920
91
- - !ruby/object:Gem::Dependency
92
- name: shoulda
93
- requirement: &70340785951500 !ruby/object:Gem::Requirement
94
- none: false
51
+ version_requirements: !ruby/object:Gem::Requirement
95
52
  requirements:
96
- - - ! '>='
53
+ - - "~>"
97
54
  - !ruby/object:Gem::Version
98
- version: '0'
99
- type: :development
100
- prerelease: false
101
- version_requirements: *70340785951500
102
- description: Code coverage for Ruby 1.9 with a powerful configuration library and
103
- automatic merging of coverage across test suites
55
+ version: '0.1'
56
+ description: Code coverage for Ruby with a powerful configuration library and automatic
57
+ merging of coverage across test suites
104
58
  email:
105
59
  - christoph at olszowka de
60
+ - pragtob@gmail.com
106
61
  executables: []
107
62
  extensions: []
108
63
  extra_rdoc_files: []
109
64
  files:
110
- - .gitignore
111
- - .rvmrc
112
- - .travis.yml
113
65
  - CHANGELOG.md
114
- - Gemfile
115
66
  - LICENSE
116
67
  - README.md
117
- - Rakefile
118
- - cucumber.yml
119
- - features/config_adapters.feature
120
- - features/config_autoload.feature
121
- - features/config_command_name.feature
122
- - features/config_coverage_dir.feature
123
- - features/config_deactivate_merging.feature
124
- - features/config_merge_timeout.feature
125
- - features/config_nocov_token.feature
126
- - features/config_project_name.feature
127
- - features/config_styles.feature
128
- - features/cucumber_basic.feature
129
- - features/merging_test_unit_and_rspec.feature
130
- - features/rspec_basic.feature
131
- - features/rspec_fails_on_initialization.feature
132
- - features/rspec_groups_and_filters_basic.feature
133
- - features/rspec_groups_and_filters_complex.feature
134
- - features/rspec_groups_using_filter_class.feature
135
- - features/rspec_without_simplecov.feature
136
- - features/skipping_code_blocks_manually.feature
137
- - features/step_definitions/html_steps.rb
138
- - features/step_definitions/simplecov_steps.rb
139
- - features/step_definitions/transformers.rb
140
- - features/step_definitions/web_steps.rb
141
- - features/support/env.rb
142
- - features/test_unit_basic.feature
143
- - features/test_unit_groups_and_filters_basic.feature
144
- - features/test_unit_groups_and_filters_complex.feature
145
- - features/test_unit_groups_using_filter_class.feature
146
- - features/test_unit_without_simplecov.feature
147
- - features/unicode_compatiblity.feature
68
+ - doc/alternate-formatters.md
69
+ - doc/commercial-services.md
70
+ - doc/editor-integration.md
71
+ - lib/minitest/simplecov_plugin.rb
148
72
  - lib/simplecov.rb
149
- - lib/simplecov/adapters.rb
73
+ - lib/simplecov/combine.rb
74
+ - lib/simplecov/combine/branches_combiner.rb
75
+ - lib/simplecov/combine/files_combiner.rb
76
+ - lib/simplecov/combine/lines_combiner.rb
77
+ - lib/simplecov/combine/results_combiner.rb
150
78
  - lib/simplecov/command_guesser.rb
151
79
  - lib/simplecov/configuration.rb
80
+ - lib/simplecov/coverage_statistics.rb
81
+ - lib/simplecov/default_formatter.rb
152
82
  - lib/simplecov/defaults.rb
83
+ - lib/simplecov/exit_codes.rb
84
+ - lib/simplecov/exit_codes/exit_code_handling.rb
85
+ - lib/simplecov/exit_codes/maximum_coverage_drop_check.rb
86
+ - lib/simplecov/exit_codes/minimum_coverage_by_file_check.rb
87
+ - lib/simplecov/exit_codes/minimum_overall_coverage_check.rb
153
88
  - lib/simplecov/file_list.rb
154
89
  - lib/simplecov/filter.rb
155
90
  - lib/simplecov/formatter.rb
91
+ - lib/simplecov/formatter/multi_formatter.rb
156
92
  - lib/simplecov/formatter/simple_formatter.rb
157
- - lib/simplecov/merge_helpers.rb
158
- - lib/simplecov/railtie.rb
159
- - lib/simplecov/railties/tasks.rake
93
+ - lib/simplecov/last_run.rb
94
+ - lib/simplecov/lines_classifier.rb
95
+ - lib/simplecov/load_global_config.rb
96
+ - lib/simplecov/no_defaults.rb
97
+ - lib/simplecov/process.rb
98
+ - lib/simplecov/profiles.rb
99
+ - lib/simplecov/profiles/bundler_filter.rb
100
+ - lib/simplecov/profiles/hidden_filter.rb
101
+ - lib/simplecov/profiles/rails.rb
102
+ - lib/simplecov/profiles/root_filter.rb
103
+ - lib/simplecov/profiles/test_frameworks.rb
160
104
  - lib/simplecov/result.rb
105
+ - lib/simplecov/result_adapter.rb
161
106
  - lib/simplecov/result_merger.rb
107
+ - lib/simplecov/simulate_coverage.rb
162
108
  - lib/simplecov/source_file.rb
109
+ - lib/simplecov/source_file/branch.rb
110
+ - lib/simplecov/source_file/line.rb
111
+ - lib/simplecov/useless_results_remover.rb
163
112
  - lib/simplecov/version.rb
164
- - simplecov.gemspec
165
- - test/faked_project/Gemfile
166
- - test/faked_project/Rakefile
167
- - test/faked_project/cucumber.yml
168
- - test/faked_project/features/step_definitions/my_steps.rb
169
- - test/faked_project/features/support/env.rb
170
- - test/faked_project/features/test_stuff.feature
171
- - test/faked_project/lib/faked_project.rb
172
- - test/faked_project/lib/faked_project/framework_specific.rb
173
- - test/faked_project/lib/faked_project/meta_magic.rb
174
- - test/faked_project/lib/faked_project/some_class.rb
175
- - test/faked_project/spec/faked_spec.rb
176
- - test/faked_project/spec/meta_magic_spec.rb
177
- - test/faked_project/spec/some_class_spec.rb
178
- - test/faked_project/spec/spec_helper.rb
179
- - test/faked_project/test/faked_test.rb
180
- - test/faked_project/test/meta_magic_test.rb
181
- - test/faked_project/test/some_class_test.rb
182
- - test/faked_project/test/test_helper.rb
183
- - test/fixtures/app/controllers/sample_controller.rb
184
- - test/fixtures/app/models/user.rb
185
- - test/fixtures/deleted_source_sample.rb
186
- - test/fixtures/frameworks/rspec_bad.rb
187
- - test/fixtures/frameworks/rspec_good.rb
188
- - test/fixtures/frameworks/testunit_bad.rb
189
- - test/fixtures/frameworks/testunit_good.rb
190
- - test/fixtures/resultset1.rb
191
- - test/fixtures/resultset2.rb
192
- - test/fixtures/sample.rb
193
- - test/fixtures/utf-8.rb
194
- - test/helper.rb
195
- - test/shoulda_macros.rb
196
- - test/test_1_8_fallbacks.rb
197
- - test/test_command_guesser.rb
198
- - test/test_deleted_source.rb
199
- - test/test_file_list.rb
200
- - test/test_filters.rb
201
- - test/test_merge_helpers.rb
202
- - test/test_result.rb
203
- - test/test_return_codes.rb
204
- - test/test_source_file.rb
205
- - test/test_source_file_line.rb
206
- homepage: http://github.com/colszowka/simplecov
207
- licenses: []
208
- post_install_message:
113
+ homepage: https://github.com/simplecov-ruby/simplecov
114
+ licenses:
115
+ - MIT
116
+ metadata:
117
+ bug_tracker_uri: https://github.com/simplecov-ruby/simplecov/issues
118
+ changelog_uri: https://github.com/simplecov-ruby/simplecov/blob/main/CHANGELOG.md
119
+ documentation_uri: https://www.rubydoc.info/gems/simplecov/0.22.0
120
+ mailing_list_uri: https://groups.google.com/forum/#!forum/simplecov
121
+ source_code_uri: https://github.com/simplecov-ruby/simplecov/tree/v0.22.0
122
+ post_install_message:
209
123
  rdoc_options: []
210
124
  require_paths:
211
125
  - lib
212
126
  required_ruby_version: !ruby/object:Gem::Requirement
213
- none: false
214
127
  requirements:
215
- - - ! '>='
128
+ - - ">="
216
129
  - !ruby/object:Gem::Version
217
- version: '0'
130
+ version: 2.5.0
218
131
  required_rubygems_version: !ruby/object:Gem::Requirement
219
- none: false
220
132
  requirements:
221
- - - ! '>='
133
+ - - ">="
222
134
  - !ruby/object:Gem::Version
223
135
  version: '0'
224
136
  requirements: []
225
- rubyforge_project:
226
- rubygems_version: 1.8.16
227
- signing_key:
228
- specification_version: 3
229
- summary: Code coverage for Ruby 1.9 with a powerful configuration library and automatic
230
- merging of coverage across test suites
231
- test_files:
232
- - features/config_adapters.feature
233
- - features/config_autoload.feature
234
- - features/config_command_name.feature
235
- - features/config_coverage_dir.feature
236
- - features/config_deactivate_merging.feature
237
- - features/config_merge_timeout.feature
238
- - features/config_nocov_token.feature
239
- - features/config_project_name.feature
240
- - features/config_styles.feature
241
- - features/cucumber_basic.feature
242
- - features/merging_test_unit_and_rspec.feature
243
- - features/rspec_basic.feature
244
- - features/rspec_fails_on_initialization.feature
245
- - features/rspec_groups_and_filters_basic.feature
246
- - features/rspec_groups_and_filters_complex.feature
247
- - features/rspec_groups_using_filter_class.feature
248
- - features/rspec_without_simplecov.feature
249
- - features/skipping_code_blocks_manually.feature
250
- - features/step_definitions/html_steps.rb
251
- - features/step_definitions/simplecov_steps.rb
252
- - features/step_definitions/transformers.rb
253
- - features/step_definitions/web_steps.rb
254
- - features/support/env.rb
255
- - features/test_unit_basic.feature
256
- - features/test_unit_groups_and_filters_basic.feature
257
- - features/test_unit_groups_and_filters_complex.feature
258
- - features/test_unit_groups_using_filter_class.feature
259
- - features/test_unit_without_simplecov.feature
260
- - features/unicode_compatiblity.feature
261
- - test/faked_project/Gemfile
262
- - test/faked_project/Rakefile
263
- - test/faked_project/cucumber.yml
264
- - test/faked_project/features/step_definitions/my_steps.rb
265
- - test/faked_project/features/support/env.rb
266
- - test/faked_project/features/test_stuff.feature
267
- - test/faked_project/lib/faked_project.rb
268
- - test/faked_project/lib/faked_project/framework_specific.rb
269
- - test/faked_project/lib/faked_project/meta_magic.rb
270
- - test/faked_project/lib/faked_project/some_class.rb
271
- - test/faked_project/spec/faked_spec.rb
272
- - test/faked_project/spec/meta_magic_spec.rb
273
- - test/faked_project/spec/some_class_spec.rb
274
- - test/faked_project/spec/spec_helper.rb
275
- - test/faked_project/test/faked_test.rb
276
- - test/faked_project/test/meta_magic_test.rb
277
- - test/faked_project/test/some_class_test.rb
278
- - test/faked_project/test/test_helper.rb
279
- - test/fixtures/app/controllers/sample_controller.rb
280
- - test/fixtures/app/models/user.rb
281
- - test/fixtures/deleted_source_sample.rb
282
- - test/fixtures/frameworks/rspec_bad.rb
283
- - test/fixtures/frameworks/rspec_good.rb
284
- - test/fixtures/frameworks/testunit_bad.rb
285
- - test/fixtures/frameworks/testunit_good.rb
286
- - test/fixtures/resultset1.rb
287
- - test/fixtures/resultset2.rb
288
- - test/fixtures/sample.rb
289
- - test/fixtures/utf-8.rb
290
- - test/helper.rb
291
- - test/shoulda_macros.rb
292
- - test/test_1_8_fallbacks.rb
293
- - test/test_command_guesser.rb
294
- - test/test_deleted_source.rb
295
- - test/test_file_list.rb
296
- - test/test_filters.rb
297
- - test/test_merge_helpers.rb
298
- - test/test_result.rb
299
- - test/test_return_codes.rb
300
- - test/test_source_file.rb
301
- - test/test_source_file_line.rb
302
- has_rdoc:
137
+ rubygems_version: 3.3.7
138
+ signing_key:
139
+ specification_version: 4
140
+ summary: Code coverage for Ruby
141
+ test_files: []
data/.gitignore DELETED
@@ -1,30 +0,0 @@
1
- .bundle
2
- Gemfile.lock
3
-
4
- ## MAC OS
5
- .DS_Store
6
- .document
7
-
8
- ## TEXTMATE
9
- *.tmproj
10
- tmtags
11
-
12
- ## EMACS
13
- *~
14
- \#*
15
- .\#*
16
-
17
- ## VIM
18
- *.swp
19
-
20
- ## PROJECT::GENERAL
21
- coverage
22
- rdoc
23
- pkg
24
- tmp
25
- capybara*.html
26
-
27
- ## PROJECT::SPECIFIC
28
-
29
- .yardoc
30
- doc
data/.rvmrc DELETED
@@ -1 +0,0 @@
1
- rvm use 1.9.3-p125
data/.travis.yml DELETED
@@ -1,13 +0,0 @@
1
- script: "bundle exec rake test && bundle exec cucumber features"
2
- rvm:
3
- # - 1.8.6 # Has trouble with rake 0.9+ :(
4
- - 1.8.7
5
- - 1.9.2
6
- - 1.9.3
7
- - ree
8
- - rbx
9
- - jruby
10
- notifications:
11
- email:
12
- on_success: always
13
- on_failure: always
data/Gemfile DELETED
@@ -1,9 +0,0 @@
1
- source "http://rubygems.org"
2
- gemspec
3
-
4
- # Use local copy of simplecov-html in development when checked out
5
- if File.directory?(File.dirname(__FILE__) + '/../simplecov-html')
6
- gem 'simplecov-html', :path => File.dirname(__FILE__) + '/../simplecov-html'
7
- else
8
- gem 'simplecov-html', :git => 'https://github.com/colszowka/simplecov-html'
9
- end
data/Rakefile DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env rake
2
-
3
- require 'bundler'
4
- Bundler::GemHelper.install_tasks
5
-
6
- require 'rake/testtask'
7
- Rake::TestTask.new(:test) do |test|
8
- test.libs << 'lib' << 'test'
9
- test.test_files = FileList['test/test_*.rb']
10
- test.verbose = true
11
- end
12
-
13
- require 'cucumber/rake/task'
14
- Cucumber::Rake::Task.new
15
-
16
- task :default => [:test, :cucumber]
data/cucumber.yml DELETED
@@ -1,13 +0,0 @@
1
- <%
2
- rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
3
- rerun_opts = rerun.to_s.strip.empty? ? "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}"
4
- std_opts = "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} --strict --tags ~@wip"
5
- interp_opts = if defined?(RUBY_ENGINE)
6
- " --tags ~@exclude-#{RUBY_ENGINE}"
7
- else
8
- ''
9
- end
10
- %>
11
- default: <%= std_opts %><%= interp_opts %> features
12
- wip: --tags @wip:30 --wip features<%= interp_opts %>
13
- rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip<%= interp_opts %>
@@ -1,44 +0,0 @@
1
- @test_unit @config @adapters
2
- Feature:
3
-
4
- In order to re-use SimpleCov settings across projects,
5
- adapters can be defined that hold configuration settings
6
- that can be loaded at once.
7
-
8
- Background:
9
- Given SimpleCov for Test/Unit is configured with:
10
- """
11
- require 'simplecov'
12
- """
13
-
14
- Scenario: Defining and using a custom adapter
15
- Given a file named ".simplecov" with:
16
- """
17
- SimpleCov.adapters.define 'custom_command' do
18
- command_name "Adapter Command"
19
- end
20
-
21
- SimpleCov.start do
22
- load_adapter 'test_frameworks'
23
- load_adapter 'custom_command'
24
- end
25
- """
26
-
27
- When I open the coverage report generated with `bundle exec rake test`
28
- Then I should see "4 files in total."
29
- And I should see "using Adapter Command" within "#footer"
30
-
31
- Scenario: Using existing adapter in custom adapter and supplying adapter to start command
32
- Given a file named ".simplecov" with:
33
- """
34
- SimpleCov.adapters.define 'my_adapter' do
35
- load_adapter 'test_frameworks'
36
- command_name "My Adapter"
37
- end
38
-
39
- SimpleCov.start 'my_adapter'
40
- """
41
-
42
- When I open the coverage report generated with `bundle exec rake test`
43
- Then I should see "4 files in total."
44
- And I should see "using My Adapter" within "#footer"
@@ -1,46 +0,0 @@
1
- @test_unit @rspec @config
2
- Feature:
3
-
4
- If you have multiple test suites, it can be a bit cumbersome
5
- to keep the configuration across them in sync. SimpleCov
6
- is able to find a config file called '.simplecov' that resides
7
- in your project's root and will automatically use it when
8
- loaded.
9
-
10
- This gives you the ability to configure SimpleCov just once
11
- and then use the same configuration on all test suites simply
12
- by doing a 'require "simplecov"'
13
-
14
- Scenario:
15
- Given a file named ".simplecov" with:
16
- """
17
- SimpleCov.start do
18
- add_filter 'test.rb'
19
- add_filter 'spec.rb'
20
- end
21
- """
22
- Given SimpleCov for Test/Unit is configured with:
23
- """
24
- require 'simplecov'
25
- """
26
- Given SimpleCov for RSpec is configured with:
27
- """
28
- require 'simplecov'
29
- """
30
-
31
- When I successfully run `bundle exec rake test`
32
- And I open the coverage report generated with `bundle exec rspec spec`
33
- Then the report should be based upon:
34
- | RSpec |
35
- | Unit Tests |
36
-
37
- And I should see the groups:
38
- | name | coverage | files |
39
- | All Files | 90.48% | 4 |
40
-
41
- And I should see the source files:
42
- | name | coverage |
43
- | lib/faked_project.rb | 100.0 % |
44
- | lib/faked_project/some_class.rb | 80.0 % |
45
- | lib/faked_project/framework_specific.rb | 87.5 % |
46
- | lib/faked_project/meta_magic.rb | 100.0 % |
@@ -1,33 +0,0 @@
1
- @test_unit @rspec @merging @config
2
- Feature: Custom names for individual test suites
3
-
4
- Each test suite needs a name it can be identified by. SimpleCov tries
5
- best to detect Rails' Unit, Functional, Integration tests as well as regular
6
- Test/Unit, RSpec and Cucumber, but if that is insufficient, each test suite
7
- config can be given a custom command name using SimpleCov.command_name.
8
-
9
- Scenario:
10
- Given SimpleCov for Test/Unit is configured with:
11
- """
12
- require 'simplecov'
13
- SimpleCov.start do
14
- command_name "I'm in UR Unitz"
15
- end
16
- """
17
- Given SimpleCov for RSpec is configured with:
18
- """
19
- require 'simplecov'
20
- SimpleCov.start do
21
- command_name "Dreck macht Speck"
22
- end
23
- """
24
-
25
- When I open the coverage report generated with `bundle exec rake test`
26
- Then the report should be based upon:
27
- | I'm in UR Unitz |
28
-
29
- When I open the coverage report generated with `bundle exec rspec spec`
30
- Then the report should be based upon:
31
- | Dreck macht Speck |
32
- | I'm in UR Unitz |
33
-
@@ -1,20 +0,0 @@
1
- @test_unit @config
2
- Feature:
3
-
4
- The output directory for test coverage can be customized
5
- with the SimpleCov.coverage_dir setting. All coverage reports
6
- will be put there instead of the default 'coverage' directory
7
- in your project's root.
8
-
9
- Scenario:
10
- Given SimpleCov for Test/Unit is configured with:
11
- """
12
- require 'simplecov'
13
- SimpleCov.start do
14
- coverage_dir 'test/simplecov'
15
- end
16
- """
17
-
18
- When I successfully run `bundle exec rake test`
19
- Then a coverage report should have been generated in "test/simplecov"
20
- And a directory named "coverage" should not exist
@@ -1,42 +0,0 @@
1
- @test_unit @rspec @merging @config
2
- Feature:
3
-
4
- If merging of test suite results is not desired, it can be deactivated,
5
- thus leading to the coverage report being overwritten with the latest results
6
- of a single test suite on each run of any suite.
7
-
8
- It's probably preferrable to generate the individual suite results into separate
9
- output directories instead (see SimpleCov.coverage_dir), but it is possible :)
10
-
11
- Scenario:
12
- Given SimpleCov for Test/Unit is configured with:
13
- """
14
- require 'simplecov'
15
- SimpleCov.start do
16
- use_merging false
17
- end
18
- """
19
- Given SimpleCov for RSpec is configured with:
20
- """
21
- require 'simplecov'
22
- SimpleCov.start do
23
- use_merging false
24
- end
25
- """
26
-
27
- When I successfully run `bundle exec rake test`
28
- Then a file named "coverage/index.html" should exist
29
- But a file named "coverage/.resultset.json" should not exist
30
-
31
- Given I open the coverage report
32
- Then the report should be based upon:
33
- | Unit Tests |
34
-
35
- When I successfully run `bundle exec rspec spec`
36
- Then a file named "coverage/index.html" should exist
37
- But a file named "coverage/.resultset.json" should not exist
38
-
39
- Given I open the coverage report
40
- Then the report should be based upon:
41
- | RSpec |
42
-