Effective Defect Management Across Multiple Code Branches

US2016291970A1 · US · A1

Patent metadata
FieldValue
Publication numberUS-2016291970-A1
Application numberUS-201514673967-A
CountryUS
Kind codeA1
Filing dateMar 31, 2015
Priority dateMar 31, 2015
Publication dateOct 6, 2016
Grant date

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

A computer-implemented method is disclosed which detects that new source code linked to a defect identifier has been checked in to a source code repository for a given code branch of a software application. The new source code is automatically checked in to additional code branches of the software application based on the defect identifier. For each additional code branch into which the new source code is automatically checked in, code coverage metrics are determined which indicate an extent to which application source code of the code branch is tested by its corresponding test case source code before and after the automatic check in. If a difference between the code coverage metrics indicates that code coverage for the code branch has decreased by more than a predefined threshold, a notification is transmitted that indicates a test case deficiency for the code branch.

First claim

Opening claim text (preview).

1 . A computer-implemented method comprising: detecting that new source code linked to a defect identifier has been checked in to a source code repository for a given one of a plurality of code branches of a software application, wherein the new source code comprises new application source code and new test case source code, and wherein the defect identifier identifies a defect in the software application that the new application source code resolves and the new test case source code tests; automatically checking in the new source code to additional ones of the plurality of code branches based on the defect identifier; and for each additional code branch into which the new source code is automatically checked in: determining a first code coverage metric indicative of an extent to which application source code of the code branch was tested by its corresponding test case source code before the automatic check in of the new source code; determining a second code coverage metric indicative of an extent to which application source code of the code branch is tested by its corresponding test case source code, which includes the new test case source code, after the automatic check in of the new source code; and if a difference between the first and second code coverage metrics indicates that code coverage for the code branch has decreased by more than a predefined threshold, transmitting a notification that indicates a test case deficiency for the code branch. 2 . The computer-implemented method of claim 1 , further comprising: determining a set of files in the given code branch that are updated by the new application source code; and determining which of the additional code branches that the new source code will be automatically checked in to based on the defect identifier, and also based on whether the set of files are already present in the additional ones of the plurality of code branches. 3 . The computer-implemented method of claim 2 , wherein said determining which of the additional code branches that the new source code will be automatically checked in to comprises: determining that the new source code should not be automatically checked in to one of the plurality of code branches if none of the files in the set of files are present in the code branch. 4 . The computer-implemented method of claim 2 , wherein the determining of which additional code branches the new source code will be automatically checked in to is further based on an exclusion list which indicates code branches into which application source code should not be automatically checked in. 5 . The computer-implemented method of claim 2 , further comprising: determining whether the new application source code includes any new files that were not included in the given code branch before the check in of the new source code; wherein said automatically checking in the new source code to additional ones of the plurality of code branches based on the defect identifier comprises: for each file in the set of files, determining what changes were made to the file by the new application source code, and merging those changes into existing files in the additional ones of the plurality of code branches; and if the new application source code includes a new file, adding the new file to the additional ones of the plurality of code branches. 6 . The computer-implemented method of claim 1 , further comprising: determining a change set comprising files in the given code branch that are either updated or added by the check in of the new source code; wherein neither of the first and second code coverage metrics reflects code coverage of files that are not present in the change set. 7 . The computer-implemented method of claim 1 , further comprising: detecting that additional source code linked to an additional defect identifier has been checked into the source code repository for a particular one of the plurality of code branches, wherein the additional source code comprises application source code but does not include any test case source code; automatically checking in the additional source code to additional ones of the plurality of code branches based on the additional defect identifier; querying a software testing management platform to determine if any test case source code is available for the additional defect identifier; and if no indication is received from the software testing management platform that indicates that test case source code is available for the additional defect identifier after either a predetermined amount of time or a predetermined amount of querying, transmitting a notification that indicates a test case deficiency for the additional defect identifier. 8 . The computer-implemented method of claim 1 , further comprising: automatically updating a software testing management platform to reflect that additional test cases, which correspond to the new test case source code, are available for the additional ones of the plurality of code branches. 9 . The computer-implemented method of claim 1 , further comprising: generating, based on the first and second code coverage metrics, a dashboard that displays historical code coverage data for the software application. 10 . The computer-implemented method of claim 1 , further comprising: if an attempted automatic check in of the new source code into a particular one of the plurality of code branches fails, transmitting a notification that manual resolution is required to incorporate the new source code into the particular code branch. 11 . A computing device comprising: a memory circuit; and a processing circuit operatively connected the memory circuit and configured to: detect that new source code linked to a defect identifier has been checked in to a source code repository for a given one of a plurality of code branches of a software application, wherein the new source code comprises new application source code and new test case source code, and wherein the defect identifier identifies a defect in the software application that the new application source code resolves and the new test case source code tests; automatically check in the new source code to additional ones of the plurality of code branches based on the defect identifier; and for each additional code branch into which the new source code is automatically checked in: determine a first code coverage metric indicative of an extent to which application source code of the code branch was tested by its corresponding test case source code before the automatic check in of the new source code; determine a second code coverage metric indicative of an extent to which application source code of the code branch is tested by its corresponding test case source code, which includes the new test case source code, after the automatic check in of the new source code; and if a difference between the first and second code coverage metrics indicates that code coverage for the code branch has decreased by more than a predefined threshold, transmit a notification that indicates a test case deficiency for the code branch. 12 . The computing device of claim 11 , wherein the processing circuit is further configured to: determine a set of files in the given code branch that are updated by the new application source code; and determine which of the additional code branches that the new source code will be automatically checked in to based on the defect identifier, and also based on whether the set of files are already present in the additional ones of the plurality of code branches. 13 . The computing device of claim 12 , wherein to determine which of the add

Assignees

Inventors

Classifications

  • Environments for analysis, debugging or testing of software · CPC title

  • for coverage analysis · CPC title

  • Software metrics · CPC title

  • for test version control, e.g. updating test cases to a new software version · CPC title

  • G06F8/71Primary

    Version control (security arrangements therefor G06F21/57); Configuration management · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US2016291970A1 cover?
A computer-implemented method is disclosed which detects that new source code linked to a defect identifier has been checked in to a source code repository for a given code branch of a software application. The new source code is automatically checked in to additional code branches of the software application based on the defect identifier. For each additional code branch into which the new sou…
Who is the assignee on this patent?
Ca Inc
What technology area does this patent fall under?
Primary CPC classification G06F8/71. Mapped technology areas include Physics.
When was this patent published?
Publication date Thu Oct 06 2016 00:00:00 GMT+0000 (Coordinated Universal Time) (A1). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 8 related publications on this page (citations in our corpus or others sharing the same primary CPC).