Show simple item record

dc.contributor.authorSaff, David
dc.contributor.authorArtzi, Shay
dc.contributor.authorPerkins, Jeff H.
dc.contributor.authorErnst, Michael D.
dc.contributor.otherProgram Analysis
dc.date.accessioned2005-12-22T02:32:40Z
dc.date.available2005-12-22T02:32:40Z
dc.date.issued2005-06-08
dc.identifier.otherMIT-CSAIL-TR-2005-042
dc.identifier.otherMIT-LCS-TR-991
dc.identifier.urihttp://hdl.handle.net/1721.1/30553
dc.description.abstractTest factoring creates fast, focused unit tests from slow system-widetests; each new unit test exercises only a subset of the functionalityexercised by the system test. Augmenting a test suite with factoredunit tests should catch errors earlier in a test run.One way to factor a test is to introduce 'mock' objects. If a testexercises a component T, which interacts with another component E (the'environment'), the implementation of E can be replaced by a mock.The mock checks that T's calls to E are as expected, and it simulatesE's behavior in response. We introduce an automatic technique fortest factoring. Given a system test for T and E, and a record of T'sand E's behavior when the system test is run, test factoring generatesunit tests for T in which E is mocked. The factored tests can isolatebugs in T from bugs in E and, if E is slow or expensive, improve testperformance or cost.We have built an implementation of automatic dynamic test factoring for theJava language. Our experimental data indicates that it can reduce therunning time of a system test suite by up to an order of magnitude.
dc.format.extent10 p.
dc.format.extent21413970 bytes
dc.format.extent780396 bytes
dc.format.mimetypeapplication/postscript
dc.format.mimetypeapplication/pdf
dc.language.isoen_US
dc.relation.ispartofseriesMassachusetts Institute of Technology Computer Science and Artificial Intelligence Laboratory
dc.titleAutomatic Test Factoring for Java


Files in this item

Thumbnail
Thumbnail

This item appears in the following Collection(s)

Show simple item record