• DocumentCode
    2770317
  • Title

    Mock-object generation with behavior

  • Author

    Tillmann, Nikolai ; Schulte, Wolfram

  • Author_Institution
    Microsoft Res., Redmond, WA
  • fYear
    2006
  • fDate
    18-22 Sept. 2006
  • Firstpage
    365
  • Lastpage
    368
  • Abstract
    Unit testing is a popular way to guide software development and testing. Each unit test should target a single feature, but in practice it is difficult to test features in isolation. Mock objects are a well-known technique to substitute parts of a program which are irrelevant for a particular unit test. Today mock objects are usually written manually supported by tools that generate method stubs or distill behavior from existing programs. We have developed a prototype tool based on symbolic execution of .NET code that generates mock objects including their behavior by analyzing all uses of the mock object in a given unit test. It is not required that an actual implementation of the mocked behavior exists. We are working towards an integration of our tool into Visual Studio Team System
  • Keywords
    program compilers; program debugging; program testing; visual programming; .NET code; Visual Studio Team System; mock-object generation; software development; software testing; symbolic execution; unit testing; Concrete; Debugging; Instruments; Programming; Prototypes; Software engineering; Software testing;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Automated Software Engineering, 2006. ASE '06. 21st IEEE/ACM International Conference on
  • Conference_Location
    Tokyo
  • ISSN
    1938-4300
  • Print_ISBN
    0-7695-2579-2
  • Type

    conf

  • DOI
    10.1109/ASE.2006.51
  • Filename
    4019611