Commit 0767521
committed
Make simplecov require conditional in test helper
Wrap the 'require simplecov' statement in a begin/rescue block to
handle cases where simplecov is not available or not compatible with
the Ruby version being tested.
This fixes test failures in CI where older Ruby versions (2.5.1, 2.6.2,
2.7.1) or certain environments may not have simplecov available or
compatible.1 parent 5b8fddb commit 0767521
1 file changed
+8
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
5 | 9 | | |
6 | 10 | | |
7 | 11 | | |
| |||
0 commit comments