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

Print undercover result to a file

rafayet-monon opened this issue · comments

I was trying to use the Undercover gem with Danger. For the Danger to read data from undercover, the report was needed to be printed in a file.

Is it possible to add a -o $output_path option within undercover which can be super useful for a lot of people out there?

Hi @rafayet-monon! Thanks for submitting this issue and most importantly for your work on https://github.com/nimblehq/danger-undercover. Just added a link to it in the readme file.

Adding a file output option is surely welcome. My concern is mostly about the specific output format and how it's going to be consumed (e.g. should it be JSON or something else). I don't know much about the internals of danger (as a user of pronto), but it would be nice to have stuff like inline comments and this could already warrant some structured output. Not going to work on this immediately, but I'd be happy to discuss more details here

For danger-undercover, we just used the output the undercover provides. What we did was print it in a .txt file and show it in PR. It was just simple and straightforward.

image