• DocumentCode
    724754
  • Title

    Generating unit tests using static analysis and contracts

  • Author

    Andrianova, Aleftina ; Itsykson, Vladimir

  • Author_Institution
    Comput. Syst. & Software Eng. Dept., St. Petersburg State Polytech. Univ., St. Petersburg, Russia
  • fYear
    2013
  • fDate
    10-12 Oct. 2013
  • Firstpage
    83
  • Lastpage
    88
  • Abstract
    Software Quality Assurance is one of the main challenges of software engineering. One of the ways to improve software quality is automated synthesis of unit tests. This paper describes a technology of automated unit tests creation combining the “white” and “black” box approaches. This allows using information extracted from the source code of the program and using partial specifications in the form of contracts to create test oracles and distribute the test parameters across the domain of definition to ensure the test coverage of program paths. The developed approach was implemented as a tool that analyzes Java-based programs and generates test cases for class methods in JUnit format, using CoFoJa to specify the contracts. Testing of the designed tool performed on a number of test objects has proven that the approach is efficient.
  • Keywords
    Java; contracts; program diagnostics; program testing; software quality; source code (software); CoFoJa; JUnit format; Java-based program; automated software testing; automated synthesis; automated unit test creation; black box approach; contracts; information extraction; software engineering; software quality assurance; source code; static analysis; white box approach; Computational modeling; Computers; Generators; SMT-solver; automated software testing; code analysis; contract-based programming; unit test synthesis;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Tools & Methods of Program Analysis (TMPA), 2013
  • Conference_Location
    Kostroma
  • Print_ISBN
    978-0-9860773-1-9
  • Type

    conf

  • DOI
    10.1109/TMPA.2013.7163725
  • Filename
    7163725