An empirical study of testing file-system-dependent software with mock objects

Madhuri R. Marri, Tao Xie, Nikolai Tillmann, Jonathan De Halleux, Wolfram Schulte

Research output: Chapter in Book/Report/Conference proceedingConference contribution

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.

Original languageEnglish (US)
Title of host publicationProceedings of the 2009 ICSE Workshop on Automation of Software Test, AST 2009
Pages149-153
Number of pages5
DOIs
StatePublished - Oct 12 2009
Externally publishedYes
Event2009 ICSE Workshop on Automation of Software Test, AST 2009 - Vancouver, BC, Canada
Duration: May 16 2009May 24 2009

Publication series

NameProceedings of the 2009 ICSE Workshop on Automation of Software Test, AST 2009

Other

Other2009 ICSE Workshop on Automation of Software Test, AST 2009
CountryCanada
CityVancouver, BC
Period5/16/095/24/09

ASJC Scopus subject areas

  • Software

Fingerprint Dive into the research topics of 'An empirical study of testing file-system-dependent software with mock objects'. Together they form a unique fingerprint.

  • Cite this

    Marri, M. R., Xie, T., Tillmann, N., De Halleux, J., & Schulte, W. (2009). An empirical study of testing file-system-dependent software with mock objects. In Proceedings of the 2009 ICSE Workshop on Automation of Software Test, AST 2009 (pp. 149-153). [5069054] (Proceedings of the 2009 ICSE Workshop on Automation of Software Test, AST 2009). https://doi.org/10.1109/IWAST.2009.5069054