Evaluation of library test suites using mutation testing
AssigneeOracle International Corporation
InventorsPadmanabhan Krishnan, Rebecca O'Donoghue, Jerome Loh
Life of this patent
Estimating the term…
Abstract
A method for evaluating a test suite for a software library includes generating a mutated software library by adding a fault to the software library, while the software library is used by a testing tool to evaluate a test suite. The method further includes loading the mutated software library, then executing a test in the test suite on the mutated software library to obtain a test result. The method further includes analyzing the test result.
Claims15
A method for evaluating a test suite for a software library comprising:
- loading the software library comprising a first class, wherein the first class is an un-mutated class;
- generating a mutated software library by adding a first fault to the first class of the software library to obtain a second class, wherein the second class is a mutated class,
- wherein the first class of the software library is used by a testing tool to evaluate a test suite,
- wherein the first class of the software library comprises a first security call comprising a check for a first permission,
- wherein generating the mutated software library further comprises modifying the first security call to further comprise a check for a second permission to obtain a modified security call, and
- wherein the first fault is the modified security call;
- loading the mutated software library;
- executing, using the mutated class, a test in the test suite on the mutated software library to obtain a test result;
- and
- analyzing the test result.
A system for evaluating a test suite for a software library comprising:
- memory comprising the software library comprising a first class, wherein the first class is an un-mutated class;
- and
- a computer processor executing a testing tool for causing the computer processor to:
- load the software library,
- generate a mutated software library by adding a first fault to the first class of the software library to obtain a second class, wherein the second class is a mutated class,
- wherein the first class of the software library is used by a testing tool to evaluate a test suite,
- wherein the first class of the software library comprises a first security call comprising a check for a first permission,
- wherein generating the mutated software library further comprises modifying the first security call to further comprise a check for a second permission to obtain a modified security call, and
- wherein the first fault is the modified security call;
- load the mutated software library;
- execute, using the mutated class, a test in the test suite on the mutated software library to obtain a test result;
- and
- analyze the test result.
A non-transitory computer readable medium for evaluating a test suite for a software library comprising computer readable program code for:
- loading the software library comprising a first class, wherein the first class is an un-mutated class;
- generating a mutated software library by adding a first fault to the first class of the software library to obtain a second class, wherein the second class is a mutated class,
- wherein the first class of the software library is used by a testing tool to evaluate a test suite,
- wherein the first class of the software library comprises a first security call comprising a check for a first permission,
- wherein generating the mutated software library further comprises modifying the first security call to further comprise a check for a second permission to obtain a modified security call, and
- wherein the first fault is the modified security call;
- loading the mutated software library;
- executing, using the mutated class, a test in the test suite on the mutated software library to obtain a test result;
- and
- analyzing the test result.
Dependencies are inferred from the claim text.