• DocumentCode
    1575184
  • Title

    Test Inspected Unit or Inspect Unit Tested Code?

  • Author

    Gupta, Atul ; Jalote, Pankaj

  • Author_Institution
    Indian Inst. of Technol., Kanpur
  • fYear
    2007
  • Firstpage
    51
  • Lastpage
    60
  • Abstract
    Code inspection and unit testing are two popular fault- detecting techniques at unit level. Organizations where inspections are done generally supplement it with unit testing, as both are complementary. A natural question is the order in which the two techniques should be exercised as this may impact the overall effectiveness and efficiency of the verification process. In this paper, we present a controlled experiment comparing the two execution-orders, namely, code inspection followed by unit testing (CI-UT) and unit testing followed by code inspection (UT-CI), performed by a group of fresh software engineers in a company. The subjects inspected program-units by traversing a set of usage scenarios and applied unit testing by writing JUnit tests for the same. Our results showed that unit testing can be more effective, as well as more efficient, if applied after code inspection whereas the later is unaffected of the execution- order. Overall results suggest that sequence CI-UT performs better than UT-CI in time-constrained situations.
  • Keywords
    fault diagnosis; inspection; program testing; JUnit tests; code inspection; fault-detection technique; inspect unit tested code; software engineering; Automatic testing; Fault diagnosis; Inspection; Measurement units; Performance evaluation; Software engineering; Software measurement; Software testing; System testing; Writing;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Empirical Software Engineering and Measurement, 2007. ESEM 2007. First International Symposium on
  • Conference_Location
    Madrid
  • ISSN
    1938-6451
  • Print_ISBN
    978-0-7695-2886-1
  • Type

    conf

  • DOI
    10.1109/ESEM.2007.52
  • Filename
    4343732