CSAIL Event Calendar: Previous Series

Automatic Test Factoring for Java

Speaker: David Saff ,
Date: December 5 2005
Time: 4:10PM to 5:00PM
Location: Kiva/Patil seminar room 32-G449
Contact: Louis-Philippe Morency, 617-253-4278, lmorency@csail.mit.edu
Relevant URL:

Test factoring creates fast, focused unit tests from any program execution. Where there are no tests, tests are created. Where there are slow tests, they are made faster.

If a test exercises 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 simulates E's behavior in response. We introduce an automatic technique for test factoring through automatic creation of mock objects. By instrumenting a program execution and recording the interaction between T and E, test factoring generates unit tests for T in which E is mocked. The factored tests can isolate bugs in T from bugs in E and, if E is slow or expensive, improve test performance or cost.

Our implementation of automatic dynamic test factoring for the Java language reduces the running time of a system test suite by up to an order of magnitude.

Work with Shay Artzi, Jeff H. Perkins, Michael D. Ernst.

See other events that are part of CSAIL Student Seminar Series Fall 2005

See other events happening in December 2005


About Us Research News Resources Directory