文章 2017-08-01 来自:开发者社区

《测试驱动的嵌入式C语言开发》——2.3节CppUTest:一个用C++实现的自动化单元测试框架

2.3 CppUTest:一个用C++实现的自动化单元测试框架现在你已经见过了Unity,接下来我会快速介绍一下CppUTest,同时也是我更倾向于使用的对C和C++代码进行单元测试的自动化测试框架。事实上,不仅因为它是一个功能全面的测试框架,同时也因为我是CppUTest的作者之一。本书开始的几个例子会用Unity,在第8章之后会使用CppUTest。CppUTest是为了支持在多种操作系统上....

文章 2017-08-01 来自:开发者社区

《测试驱动的嵌入式C语言开发》——2.1节什么是自动化单元测试框架

2.1 什么是自动化单元测试框架自动化单元测试框架就是一个软件包,它能让程序员表达产品代码应该有什么样的行为。自动化单元测试框架的工作就是要提供以下能力: 用于表述测试用例的通用语言; 用于表述期望结果的通用语言; 能够使用产品代码所用编程语言的功能; 能把所有的工程、系统或子系统中的单元测试用例收集到一起; 一个能运行全部或者部分测试用例的机制; 对于测试套件的成功和失败给出明确的报告; 对.....

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。

产品推荐

{"cardStyle":"productCardStyle","productCode":"","productCardInfo":{"productTitle":"Terraform","productDescription":"Terraform是基础架构自动化编排工具,高度可扩展,阿里云作为其provider支持您创建并管理新的基础架构,让您在阿里云上轻松定义、预览和部署云资源,实现云上自动化需求。","productContentLink":"https://help.aliyun.com/product/95817.html","isDisplayProductIcon":false,"productButton1":{"productButtonText":"产品文档","productButtonLink":"https://help.aliyun.com/product/95817.html"},"productButton2":{"productButtonText":"开源仓库","productButtonLink":"https://github.com/aliyun/terraform-provider-alicloud"},"productButton3":{"productButtonText":"快速体验","productButtonLink":"https://api.aliyun.com/terraform"},"productPromotionInfoBlock":[{"$id":"0","productPromotionGroupingTitle":"开源免费","productPromotionInfoFirstText":"基础设施即代码","productPromotionInfoFirstLink":"https://help.aliyun.com/document_detail/95820.html","productPromotionInfoSecondText":"用代码管理维护资源","productPromotionInfoSecondLink":"https://help.aliyun.com/document_detail/95821.html"},{"$id":"1","productPromotionGroupingTitle":"多云适用","productPromotionInfoFirstText":"能够管理多云资源","productPromotionInfoFirstLink":"https://help.aliyun.com/document_detail/95828.html","productPromotionInfoSecondText":"便于云资源管理与迁移","productPromotionInfoSecondLink":"https://help.aliyun.com/document_detail/95828.html"},{"$id":"2","productPromotionGroupingTitle":"自动化管理","productPromotionInfoFirstText":"减少人为因素错误","productPromotionInfoFirstLink":"https://help.aliyun.com/document_detail/95828.html","productPromotionInfoSecondText":"开发降本增效","productPromotionInfoSecondLink":"https://help.aliyun.com/document_detail/95828.html"},{"$id":"3","productPromotionGroupingTitle":"开箱即用","productPromotionInfoFirstText":"丰富的Modules和Examples","productPromotionInfoFirstLink":"https://github.com/alibabacloud-automation","productPromotionInfoSecondText":"开发者共建贡献","productPromotionInfoSecondLink":"https://help.aliyun.com/document_detail/95835.html"}],"isOfficialLogo":false},"activityCardInfo":{"activityTitle":"","activityDescription":"","cardContentBackgroundMode":"LightMode","activityContentBackgroundImageLink":"","activityCardBottomInfoSelect":"activityPromotionInfoBlock"}}

开发与运维

集结各类场景实战经验,助你开发运维畅行无忧

+关注