Integration Testing

Chris Hobbs
{"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.
集成测试
单元测试的理想是隔离单个代码单元,并根据其行为规范对其进行测试。这可能涉及构建大量的“脚手架”代码,以允许测试继续进行。特别是测试人员需要构造:驱动代码来驱动代码单元。这通常包含在单独的JUnit测试中。存根代码,用来代替代码单元在提供功能时使用的函数或对象。存根代码通常代表尚未编写的代码,并且存根使用查找来返回值而不是计算值的功能有限。单元测试依赖于代码单元的某种规格。单元测试通常花费精力在测试从未在为其构建代码模块的系统中执行过的功能上。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信