jopen
10年前发布

Criterion: 一个简单要死的C编程语言测试框架

一个简单要死,但可扩展的C测试框架。它是一个符合KISS(Keep It Simple, Stupid)原则(懒人原则)的非侵入式C语言测试框架。与其它测试框架不同,它简单易用,声明即注册,实时报告测试进度和统计数据。

  • Tests are automatically registered when declared.
  • A default entry point is provided, no need to declare a main unless you want to do special handling.
  • Test are isolated in their own process, crashes and signals can be reported and tested.
  • Progress and statistics can be followed in real time with report hooks.

用法

Given a test file named test.c, compile it with-lcriterion:

$ gcc -o test test.c -lcriterion

项目主页:http://www.open-open.com/lib/view/home/1423299375061

 本文由用户 jopen 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
 转载本站原创文章,请注明出处,并保留原始链接、图片水印。
 本站是一个以用户分享为主的开源技术平台,欢迎各类分享!
 本文地址:https://www.open-open.com/lib/view/open1423299375061.html
Criterion 测试工具