grodowski / undercover

undercover warns about methods, classes and blocks that were changed without tests, to help you easily find untested code and reduce the number of bugs. It does so by analysing data from git diffs, code structure and SimpleCov coverage reports

Home Page:https://undercover-ci.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Run mode select

grodowski opened this issue · comments

I had a couple ideas for the diff matching algo, which can be represented as a "run mode" option. Could be overkill for now!

cc @kruszczynski

Run Mode Behaviour
DIFF_FILE Reports on all blocks with missing coverage in every added / changed file from Changeset. That's the nazi mode that forces you to improve coverage for every file you touch
DIFF_BLOCK Reports on all code blocks with missing coverage that have changed lines in them. Fosters fixing coverage for methods/blocks we changed.
DIFF_LINE_STRICT Reports on code blocks with missing coverage, where specifically the lines we changed are missing coverage (that's how it works now).

Wouldn’t call that an overkill, sounds very useful to me