• DocumentCode
    3233783
  • Title

    Data coverage testing

  • Author

    Netisopakul, Ponrudee ; White, Lee J. ; Morris, John

  • Author_Institution
    Dept. of Electr. Eng. & Comput. Sci., Case Western Reserve Univ., Cleveland, OH, USA
  • fYear
    2002
  • fDate
    2002
  • Firstpage
    465
  • Lastpage
    472
  • Abstract
    Generating test data sets which are sufficiently large to effectively cover all the tests required before a software component can be certified as reliable is a time consuming and error-prone task if carried out manually. A key parameter when testing collections is the size of the collection to be tested: an automatic test generator builds a set of collections containing n elements where n ranges from 0 to ncrit. Data coverage analysis allows us to determine rigorously a collection size such that testing with collections of size > ncrit does not provide any further useful information, i.e. will not uncover any new faults. We conducted a series of experiments on modules from the C++ Standard Template Library which were seeded with errors. Using a test model appropriate to each module, we generated data sets of sizes up to and exceeding the predicted value of ncrit and verified that after all collections of size ≤ncrit have been tested, no further errors are discovered. Data coverage was also compared with statement coverage testing and random test data set generation. The three testing techniques were compared for effectiveness at revealing errors compared to the number of test data sets used. Statement coverage testing was confirmed as the cheapest, in the sense that it produces its maximal effect for the smallest number of tests applied, but the least effective technique in terms of numbers of errors uncovered. Data coverage was significantly better than random test generation: it uncovered more faults with fewer tests at every point.
  • Keywords
    program testing; C++ Standard Template Library; automatic test generator; collection size; data coverage analysis; data coverage testing; errors; random test data set generation; statement coverage testing; test data set generation;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software Engineering Conference, 2002. Ninth Asia-Pacific
  • ISSN
    1530-1362
  • Print_ISBN
    0-7695-1850-8
  • Type

    conf

  • DOI
    10.1109/APSEC.2002.1183018
  • Filename
    1183018