• DocumentCode
    1321407
  • Title

    Mutation-Driven Generation of Unit Tests and Oracles

  • Author

    Fraser, Gordon ; Zeller, Andreas

  • Author_Institution
    Software Eng. Dept., Saarland Univ.-Comput. Sci., Saarbrucken, Germany
  • Volume
    38
  • Issue
    2
  • fYear
    2012
  • Firstpage
    278
  • Lastpage
    292
  • Abstract
    To assess the quality of test suites, mutation analysis seeds artificial defects (mutations) into programs; a nondetected mutation indicates a weakness in the test suite. We present an automated approach to generate unit tests that detect these mutations for object-oriented classes. This has two advantages: First, the resulting test suite is optimized toward finding defects modeled by mutation operators rather than covering code. Second, the state change caused by mutations induces oracles that precisely detect the mutants. Evaluated on 10 open source libraries, our μtest prototype generates test suites that find significantly more seeded defects than the original manually written test suites.
  • Keywords
    automatic test pattern generation; object-oriented programming; optimisation; program testing; artificial defects; automated test case generation; mutation driven generation; mutation operators; object-oriented classes; open source libraries; optimization; oracle; test suites quality; unit test; Biological cells; Generators; Genetic algorithms; Libraries; Software; Software algorithms; Testing; Mutation analysis; assertions; search-based testing.; test case generation; test oracles; unit testing;
  • fLanguage
    English
  • Journal_Title
    Software Engineering, IEEE Transactions on
  • Publisher
    ieee
  • ISSN
    0098-5589
  • Type

    jour

  • DOI
    10.1109/TSE.2011.93
  • Filename
    6019060