Browse Prior Art Database

Optimization of Test Buckets using Code Coverage Results

IP.com Disclosure Number: IPCOM000243737D
Publication Date: 2015-Oct-16
Document File: 3 page(s) / 1M

Publishing Venue

The IP.com Prior Art Database

Abstract

Disclosed is a method to produce a baseline that testers can query for specific information. The method runs code coverage with each test, and then merges the results into a single result.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 68% of the total text.

Page 01 of 3

Optimization of Test Buckets using Code Coverage Results

A tester may have hundreds or thousands of tests to perform . These tests might have documentation to indicate purpose, or might have incorrect documentation. When there is such a large amount of tests , a tester cannot definitely know whether tests are redundant or where to focus new tests.

The novel contribution is a method to produce a baseline that testers can query for specific information. The method runs code coverage with each test, and then merges the results into a single result. This baseline can be queried in order to optimize efforts to create new tests, determine redundant tests, and calculate the optimal set of tests to produce desired coverage in the least amount of time .

After running code coverage with each of the tests (i.e. the test bucket) and associating a test identifier and elapsed time with the code coverage result , the tester runs a merge of the results to produce a cumulative result .

Using a selector, the tester can add and remove tests from the bucket to decide

whether a test is redundant.

Figure 1: Windows Photo Viewer

Figure 2: Outline

1


Page 02 of 3

If removing a file changes the coverage, then it is not redundant. In addition, selecting and removing test allows the tester to see not only the effect on the overall coverage, but also the effect on the elapsed time needed for code coverage .

If a tester wants to know where to add new tests, there are several ways to analyze...