The Community for Technology Leaders
Automation of Software Test, Second International Workshop on (2009)
Vancouver, BC Canada
May 18, 2009 to May 19, 2009
ISBN: 978-1-4244-3711-5
pp: 149-153
Madhuri R. Marri , Department of Computer Science, North Carolina State University, Raleigh, USA
Tao Xie , Department of Computer Science, North Carolina State University, Raleigh, USA
Nikolai Tillmann , Microsoft Research, One Microsoft Way, Redmond, WA, USA
Jonathan de Halleux , Microsoft Research, One Microsoft Way, Redmond, WA, USA
Wolfram Schulte , Microsoft Research, One Microsoft Way, Redmond, WA, USA
ABSTRACT
Unit testing is a technique of testing a single unit of a program in isolation. The testability of the unit under test can be reduced when the unit interacts with its environment. The construction of high-covering unit tests and their execution require appropriate interactions with the environment such as a file system or database. To help set up the required environment, developers can use mock objects to simulate the behavior of the environment. In this paper, we present an empirical study to analyze the use of mock objects to test file-system-dependent software. We use a mock object of the FileSystem API provided with the Pex automatic testing tool in our study. We share our insights gained on the benefits of using mock objects in unit testing and discuss the faced challenges.
INDEX TERMS
application program interfaces, automatic test equipment, program testing
CITATION

M. R. Marri, Tao Xie, N. Tillmann, J. de Halleux and W. Schulte, "An empirical study of testing file-system-dependent software with mock objects," 2009 ICSE Workshop on Automation of Software Test (AST 2009)(AST), Vancouver, BC, 2009, pp. 149-153.
doi:10.1109/IWAST.2009.5069054
92 ms
(Ver 3.3 (11022016))