Small scale integration test generation
AssigneeGoogle Inc.
InventorFranjo IVANCIC
Life of this patent
Estimating the term…
Abstract
Provided are methods and systems for automated generation of small scale integration tests to keep mocked input-output contract expectations of external objects synchronized with the actual implementation of the external objects. Such synchronization is achieved through automated creation of small scale integration tests by replacing expected input-output behaviors of mocked interactions with actual code sequences of the mocked interaction. The methods and systems utilize automated test generators with search-based software engineering methods to reuse and adapt developer written tests into new automatically generated tests.
Claims20
A computer-implemented method for automated test generation comprising:
- identifying code objects witnessing an expected input-output behavior of a mocked interaction in a software unit test;
- and
- automatically creating one or more integration tests for the identified code objects by replacing expected input-output behavior of the mocked interaction with actual code implementation sequences of the previously mocked interaction.
A computer-implemented method for automated test generation comprising:
- identifying code objects witnessing an expected input-output behavior of a mocked interaction in a software test;
- and
- automatically creating one or more integration tests for the identified code objects by replacing expected input-output behavior of the mocked interaction with objects captured during unit tests of the mocked interaction.
A system for automated test generation comprising:
- a least one processor;
- and
- a non-transitory computer-readable medium coupled to the at least one processor having instructions stored thereon that, when executed by the at least one processor, causes the at least one processor to:
- identify code objects witnessing an expected input-output behavior of a mocked interaction in a software test;
- and
- automatically create one or more integration tests for the identified code objects by replacing expected input-output behavior of the mocked interaction with actual code implementation sequences of the previously mocked interaction.
Dependencies are inferred from the claim text.