What's Changed
-
New files that are not required (loaded) in tests do not appear in coverage reporting by default. To address this,
undercover
will report such new files as missing coverage, so that you don't forget to create a corresponding test file or require them in tests. 🥳🥳🥳 -
Support for including and excluding file glob patterns was added to the CLI args and the configuration file. By default
undercover
looks at extensions matching*.rb *.rake *.ru Rakefile
, but you can change that with--include-files|--exclude-files
(seeundercover -h
for details).
Fixes
-
Fixed an issue where top-level methods were not being considered #135. This was caused by a bug in the tree traversal logic.
-
Fixed a bug where
--compare
didn't work with grafted commits as there was no merge base available (#175). Now it's possible to pass a graft commit as--compare
which enablesundercover
to work with shallow clones.
Full Changelog: v0.5.0...v0.6.0