Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Post-Commit Patch Review Available Online on OpenCoverage

DZone's Guide to

Post-Commit Patch Review Available Online on OpenCoverage

The OpenCoverage website now demonstrates a post-commit patch review system utilizing the Coco code coverage tool from froglogic.

· Performance Zone ·
Free Resource

xMatters delivers integration-driven collaboration that relays data between systems, while engaging the right people to proactively resolve issues. Read the Monitoring in a Connected Enterprise whitepaper and learn about 3 tools for resolving incidents quickly.

The OpenCoverage website now demonstrates a post-commit patch review system utilizing the Coco code coverage tool from froglogic. With it, one can estimate whether there are enough tests for code changes, or whether to write new tests. Coco can therefore play a useful role in quality control.

What Is a Post-Commit Patch Review?Report of post-commit patch review

Post-commit patch review is an extension of the Coco report generation feature. The extension supports a review of changes applied to a software project. Typically, one wants to know whether the test suite of the project contains enough tests that target specifically the lines of code that have changed. For that purpose the Coco patch analysis creates a report which shows whether there are enough tests for the changed code, or whether new tests are required.

If desired, run exactly those tests that execute the code in the patch. This will mean large speedup in comparison with the execution of a full test suite.

To analyse a recent patch, one merely needs a software project that instrumented with Coco, and a set of tests for the project run at least once. With patch analysis, one can find out how the project’s code coverage will differ after applying a patch. This information is gathered even before running the tests again. One can answer the question: Which of the lines in the patch will be covered by the existing tests, and which will not? For all lines covered by the tests, the patch analysis also displays the tests that will cover them.

Patch analysis is available before applying a patch to a software project as well. Then it generates a report for the code in the patch based on previously executed tests without requiring a re-execution of the tests.

Patch Reviews in OpenCoverage

In OpenCoverage, we already show the code coverage for selected open-source projects. Now we have added an automated post-commit patch review for them. We compare the most recent changes in the Git repository with the newest revision.

An overview table shows the summaries of the analyses for each software project. It contains for each patch a short overview, with the number of modified lines executed and not executed, and other information.

Discovering, responding to, and resolving incidents is a complex endeavor. Read this narrative to learn how you can do it quickly and effectively by connecting AppDynamics, Moogsoft and xMatters to create a monitoring toolchain.

Topics:
code coverage ,code reivew ,code analysis ,c# ,patch management ,c++ ,performance

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}