Commit 464eacd
authored
Replace deprecated SimpleCov APIs with their supported equivalents (#1350)
SimpleCov 1.0.3 deprecated `# :nocov:` and a few config APIs, so every
coverage-enabled run emits `[DEPRECATION]` warnings. This migrates to
the supported replacements:
- All `# :nocov:` toggle pairs (201 markers, 64 files) rewritten via
script to `# simplecov:disable` / `# simplecov:enable`, preserving
reason text. Docs/prose mentions updated too.
- In `enable_simplecov.rb`: `enable_for_subprocesses` →
`merge_subprocesses` and `add_filter` → `skip` (both documented
same-behavior renames).
One non-mechanical change: `track_files` → `cover` is not a drop-in
replacement — `cover` also *restricts* the report to its matchers, which
would silently drop loaded files outside the glob (e.g.
`spec_support/**`) from coverage enforcement on multi-gem runs. Since
only string globs drive unloaded-file backfill, adding a
match-everything block matcher restores the old semantics:
```ruby
cover "{#{gems_being_tested_globs.join(",")}}"
cover { |_source_file| true }
```
Verified: same multi-gem spec run on `main` and this branch produces an identical coverage report file universe; single-gem run has identical coverage totals with zero deprecation warnings.1 parent c64cb9c commit 464eacd
67 files changed
Lines changed: 226 additions & 219 deletions
File tree
- ai-memory
- config
- schema
- site
- examples
- custom_resolver
- music
- src/guides
- elasticgraph-admin/spec/integration/elastic_graph/admin/index_definition_configurator
- elasticgraph-apollo/lib/elastic_graph/apollo/graphql
- elasticgraph-datastore_core/lib/elastic_graph/datastore_core/index_definition
- elasticgraph-elasticsearch/spec/unit/elastic_graph/elasticsearch
- elasticgraph-graphql
- lib/elastic_graph/graphql
- filtering
- schema
- spec
- acceptance
- integration/elastic_graph/graphql/datastore_query
- support
- unit/elastic_graph/graphql
- datastore_query
- schema
- elasticgraph-health_check/spec/unit/elastic_graph/health_check
- elasticgraph-indexer_lambda/spec
- elasticgraph-indexer
- lib/elastic_graph/indexer/operation
- spec/integration/elastic_graph/indexer
- elasticgraph-json_ingestion/lib/elastic_graph/json_ingestion/schema_definition
- indexing
- elasticgraph-local
- lib/elastic_graph/local
- spec_support
- spec/acceptance
- elasticgraph-opensearch/spec/unit/elastic_graph/opensearch
- elasticgraph-proto_ingestion/spec/support
- elasticgraph-query_interceptor/lib/elastic_graph/query_interceptor
- elasticgraph-query_registry/spec/unit/elastic_graph/query_registry
- elasticgraph-schema_artifacts/spec/unit/elastic_graph/schema_artifacts/runtime_metadata
- elasticgraph-schema_definition
- lib/elastic_graph/schema_definition
- schema_elements
- spec
- integration/elastic_graph/schema_definition
- support
- unit/elastic_graph/schema_definition/runtime_metadata/object_types_by_name
- elasticgraph-support/spec/unit/elastic_graph/support
- elasticgraph-warehouse/lib/elastic_graph/warehouse/schema_definition
- elasticgraph
- lib/elastic_graph
- spec/acceptance
- script
- spec_support
- lib/elastic_graph/spec_support
- parallel_spec_runner
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
| 183 | + | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
| 190 | + | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
| 239 | + | |
240 | 240 | | |
241 | | - | |
| 241 | + | |
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
| 296 | + | |
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | | - | |
| 305 | + | |
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
579 | 579 | | |
580 | 580 | | |
581 | 581 | | |
582 | | - | |
| 582 | + | |
583 | 583 | | |
584 | 584 | | |
585 | 585 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
| 217 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
297 | | - | |
| 297 | + | |
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | | - | |
| 305 | + | |
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
| |||
0 commit comments