Skip to content
This repository was archived by the owner on Jun 18, 2026. It is now read-only.

Commit 8f2d584

Browse files
committed
Fix mutant loading wrong simplecov-html code
Mutant's bootstrap appends `includes` to `$LOAD_PATH` via `<<`, leaving the simplecov gem's lib ahead of `./lib`. Since upstream simplecov ships a backward-compat `lib/simplecov-html.rb` shim, `require "simplecov-html"` resolved to that shim instead of our own lib — so mutant introspected and tested simplecov's bundled HTMLFormatter (different API) instead of this gem's code. Switching the require to a relative path bypasses `$LOAD_PATH` search and loads our local file directly.
1 parent 5553230 commit 8f2d584

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.mutant.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ includes:
66
- test
77
requires:
88
- simplecov
9-
- simplecov-html
9+
- ./lib/simplecov-html
1010
matcher:
1111
subjects:
1212
- SimpleCov::Formatter::HTMLFormatter*

0 commit comments

Comments
 (0)