Commit f46743a
[ruby/rubygems] Move SimpleCov setup before test-unit to fix at_exit ordering
SimpleCov and test-unit both use at_exit hooks, which Ruby executes
in LIFO order. When SimpleCov was loaded after test-unit, its at_exit
hook fired first — before tests had run — producing a spurious
"Coverage report generated" message from stale results.
Moving SimpleCov setup before test-unit ensures its at_exit hook is
registered first and therefore runs last, after tests have completed.
ruby/rubygems@47e1c347e8
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 7c8762a commit f46743a
1 file changed
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | 5 | | |
13 | 6 | | |
14 | 7 | | |
| |||
35 | 28 | | |
36 | 29 | | |
37 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
0 commit comments