2

I'm looking for a test coverage tool that can show the call path/call graph of new untested code that came from a merge.

Example: I have a git repo (on github or bitbucket) and a test suite that covers X% on master, some other developer wants to contribute and do a fork and a pull request as usual, but he/she didn't included the tests (for many reasons). Then the tool show the untested call graphs that only came after the integration of this new code.

3
  • What is your development stack? e.g. programming language and test-framework you want coverage for. Commented Feb 10, 2015 at 16:25
  • Thanks for the reply @NielsvanReijmersdal, I don't have a specific stack, I'm a master student and this was an idea that I had and just wanna know if already there is a similar tool, but the main focus is Java. Commented Feb 10, 2015 at 23:28
  • Visual Studio has such a tool for Unit Tests.
    – kirbycope
    Commented Mar 12, 2015 at 20:59

1 Answer 1

2

You could try Diff-Cover: https://github.com/Bachmann1234/diff-cover

Diff coverage is the percentage of new or modified lines that are covered by tests. This provides a clear and achievable standard for code review: If you touch a line of code, that line should be covered.

Seems Diff-Cover uses Cobertura XML coverage reports, those might or might not be available for the stack you are using.

Cobertura XML coverage reports can be generated with many coverage tools, including:

  • Cobertura (Java)
  • coverage.py (Python)
  • JSCover (JavaScript)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.