Storage medium for estimating and improving test case generation
View Patent ↗A technique for estimating and improving the test coverage for large machines, while accumulating minimum information of past test cases (i.e., minimum feedback) is provided. The technique is scalable in the sense that the number of machine instructions needed to measure the test coverage can range from a few instructions to all the instructions. The technique is easily integrated into existing test generation systems and is applicable to both uni- and multi-processing systems.
1. A computer readable, non-transitory storage medium having computer readable instructions stored thereon that, when executed by a computer, implement a method of estimating and improving test case generation, wherein the method comprises:
classifying a plurality of instructions into a plurality of groups according to architectural behavior;
determining a dominating pool from the groups, the dominating pool being a group having relatively low test coverage in comparison to the other groups;
selecting a condition from a checklist associated with the dominating pool;
randomly selecting an instruction in the dominating pool; and
generating test cases for the selected instruction according to the condition.
2. The storage medium of claim 1 , wherein the method further comprises:
biasing test data for the test cases to improve test coverage.
3. The storage medium of claim 1 , wherein the method further comprises:
selecting at least one group agent for each group;
wherein the selected instruction is the group agent for the dominating pool.
4. The storage medium of claim 3 , wherein the method further comprises:
estimating test coverage for the group with test coverage for the group agent.