{"title":"Integration Testing","authors":"Chris Hobbs","doi":"10.1002/9781119419297.ch25","DOIUrl":null,"url":null,"abstract":"The ideal in unit testing is to isolate a single code unit and test it against its behavioural specification. This may involve the construction of extensive “scaffolding” code that allows the tests to proceed. In particular the tester needs to construct: – Driver code to drive the code unit. This is usually contained in the individual JUnit tests. – Stub code to take the place of functions or objects that are used by the code unit in providing functionality. Often the stub code is standing in for as yet unwritten code and the stub has limited functionality using lookup to return a value rather than compute it. Unit test depends on having some kind of specification for the code units. Unit tests often expend effort on testing functionality that is never exercised in the system for which the code module has been constructed.","PeriodicalId":371254,"journal":{"name":"Embedded Software Development for Safety-Critical Systems","volume":"43 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2019-08-16","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"10","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Embedded Software Development for Safety-Critical Systems","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1002/9781119419297.ch25","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 10
Abstract
The ideal in unit testing is to isolate a single code unit and test it against its behavioural specification. This may involve the construction of extensive “scaffolding” code that allows the tests to proceed. In particular the tester needs to construct: – Driver code to drive the code unit. This is usually contained in the individual JUnit tests. – Stub code to take the place of functions or objects that are used by the code unit in providing functionality. Often the stub code is standing in for as yet unwritten code and the stub has limited functionality using lookup to return a value rather than compute it. Unit test depends on having some kind of specification for the code units. Unit tests often expend effort on testing functionality that is never exercised in the system for which the code module has been constructed.