Incremental code coverage analysis using automatic breakpoints

US2017132121A1 · US · A1

Patent metadata
FieldValue
Publication numberUS-2017132121-A1
Application numberUS-201514934496-A
CountryUS
Kind codeA1
Filing dateNov 6, 2015
Priority dateNov 6, 2015
Publication dateMay 11, 2017
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 portion is selected from a code for code coverage analysis. The portion is not directly referenceable by another portion of the code. An instruction is constructed to insert a code coverage breakpoint at the portion such that the code coverage analysis is performed only for the portion and the code coverage analysis of a remainder of the code is omitted. Using the instruction, a code coverage analysis tool is caused to execute the code without performing the code coverage analysis until the code coverage breakpoint. Responsive to the instruction, the code coverage analysis tool is further caused to end the code coverage analysis after the portion and resume executing the code without performing the code coverage analysis. A report of the code coverage analysis of the portion is produced.

First claim

Opening claim text (preview).

1 . A method comprising: selecting, using a processor and a memory, from a code, a portion for code coverage analysis, the portion being a single line of the code such that the single line of the code is not directly referenceable by another line of the code; constructing an instruction to insert a code coverage breakpoint at the portion such that the code coverage analysis is performed only for the portion while omitting the code coverage analysis of a remainder of the code; causing, using the instruction, a code coverage analysis tool to execute the code without performing the code coverage analysis until the code coverage breakpoint; further causing, responsive to the instruction, the code coverage analysis tool to end the code coverage analysis after the portion and resume executing the code without performing the code coverage analysis; and outputting a report of the code coverage analysis of the portion. 2 . The method of claim 1 , further comprising: selecting a test case, wherein the test case is applicable to the portion; and including, in the instruction, an indication to use the test case to perform the code coverage analysis. 3 . The method of claim 1 , wherein the instruction causes the code coverage breakpoint to be inserted at a beginning of the portion, wherein the code coverage breakpoint causes an initiation of the code coverage analysis. 4 . The method of claim 3 , wherein the instruction further causes a second code coverage breakpoint to be inserted at an end of the portion, wherein the second code coverage breakpoint causes an end of the code coverage analysis. 5 . The method of claim 1 , further comprising: invoking a code change management tool to identify a changeset corresponding to the code, the changeset including the portion. 6 . The method of claim 5 , wherein the portion comprises new code and wherein the new code has not been previously tested for code coverage analysis. 7 . The method of claim 5 , wherein the portion comprises a changed form of an existing portion, wherein the changed form has not been previously tested for code coverage analysis. 8 . The method of claim 1 , further comprising: accessing a historical data of a previous code coverage analysis of the code; and identifying, from the historical data, a gap in the previous code coverage analysis, wherein the gap corresponds to the portion, and wherein the portion comprises existing code that is unchanged since the previous code coverage analysis. 9 . The method of claim 1 , further comprising: identifying the portion such that the single line of the code in the portion has not been previously tested for code coverage analysis; identifying a second portion, the second portion being a second single line of the code, the second single line of the code is not directly referenceable by another line of the code, and wherein the second single line of the code in the second portion has been previously tested for code coverage analysis; configuring, as a part of the constructing, the instruction to insert the code coverage breakpoint at the single line of the code of the portion and insert a second code coverage breakpoint at the second single line of the code of the second portion. 10 . The method of claim 9 , wherein the second single line of the code has been previously tested using a first test case, further comprising: causing the second single line of the code to be retested using a second test case. 11 . A computer program product comprising one or more computer-readable storage devices, and program instructions stored on at least one of the one or more storage devices, the stored program instructions comprising: program instructions to select, using a processor and a memory, from a code, a portion for code coverage analysis, the portion being a single line of the code such that the single line of the code is not directly referenceable by another line of the code; program instructions to construct an instruction to insert a code coverage breakpoint at the portion such that the code coverage analysis is performed only for the portion while omitting the code coverage analysis of a remainder of the code; program instructions to cause, using the instruction, a code coverage analysis tool to execute the code without performing the code coverage analysis until the code coverage breakpoint; program instructions to further cause, responsive to the instruction, the code coverage analysis tool to end the code coverage analysis after the portion and resume executing the code without performing the code coverage analysis; and program instructions to output a report of the code coverage analysis of the portion. 12 . The computer program product of claim 11 , the stored program instructions further comprising: program instructions to select a test case, wherein the test case is applicable to the portion; and program instructions to include, in the instruction, an indication to use the test case to perform the code coverage analysis. 13 . The computer program product of claim 11 , wherein the instruction causes the code coverage breakpoint to be inserted at a beginning of the portion, wherein the code coverage breakpoint causes an initiation of the code coverage analysis. 14 . The computer program product of claim 13 , wherein the instruction further causes a second code coverage breakpoint to be inserted at an end of the portion, wherein the second code coverage breakpoint causes an end of the code coverage analysis. 15 . The computer program product of claim 11 , the stored program instructions further comprising: program instructions to invoke a code change management tool to identify a changeset corresponding to the code, the changeset including the portion. 16 . The computer program product of claim 15 , wherein the portion comprises new code and wherein the new code has not been previously tested for code coverage analysis. 17 . The computer program product of claim 15 , wherein the portion comprises a changed form of an existing portion, wherein the changed form has not been previously tested for code coverage analysis. 18 . The computer program product of claim 11 , the stored program instructions further comprising: program instructions to access a historical data of a previous code coverage analysis of the code; and program instructions to identify, from the historical data, a gap in the previous code coverage analysis, wherein the gap corresponds to the portion, and wherein the portion comprises existing code that is unchanged since the previous code coverage analysis. 19 . A computer system comprising one or more processors, one or more computer-readable memories, and one or more computer-readable storage devices, and program instructions stored on at least one of the one or more storage devices for execution by at least one of the one or more processors via at least one of the one or more memories, the stored program instructions comprising: program instructions to select from a code, a portion for code coverage analysis, the portion being a single line of the code such that the single line of the code is not directly referenceable by another line of the code; program instructions to construct an instruction to insert a code coverage breakpoint at the portion such that the code coverage analysis is performed only for the portion while omitting the code coverage analysis of a remainder of the code; program instructions to cause, using the instruction, a code coverage analysis tool to exe

Assignees

Inventors

Classifications

  • for coverage analysis · CPC title

  • for test results analysis · CPC title

  • by runtime analysis (performance monitoring G06F11/3466) · 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 US2017132121A1 cover?
A portion is selected from a code for code coverage analysis. The portion is not directly referenceable by another portion of the code. An instruction is constructed to insert a code coverage breakpoint at the portion such that the code coverage analysis is performed only for the portion and the code coverage analysis of a remainder of the code is omitted. Using the instruction, a code coverage…
Who is the assignee on this patent?
IBM
What technology area does this patent fall under?
Primary CPC classification G06F11/3676. Mapped technology areas include Physics.
When was this patent published?
Publication date Thu May 11 2017 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).