C++ 测试框架 doctest 2.0.0 发布,迁移至 C++11

局长
 局长
发布于 2018年08月27日
收藏 5

C++ 测试框架 doctest 2.0.0 已发布。该版本最大的更新莫过于将代码迁移到了 C++11 了,并表示这是受 reddit 帖子中的民意调查结果的推动。

部分更新如下

  • moved to C++11 - motivated by the results from the poll in this reddit thread

  • thread-safety - asserts and logging utilities can be used in multiple threads spawned from a single test case without race conditions (thread sanitizer tested) - see example

  • a complete overhaul of the internals of the framework (moving from printf-style logging to streams and changing internal structures) to allow for easier future development (including a reporter interface - work in progress)

  • given that doctest is extremely light on compile times and is meant to be used for tests side-by-side with the production code - added the ability for asserts to be used outside of a testing context (as a general purpose assert library) - example

此外,由于迁移至 C++11,使得其不再支持一些旧的编译器

  • MSVC 2008, 2010, 2012, 2013 (supported: 2015+)

  • GCC 4.4, 4.5, 4.6, 4.7 (supported: 4.8+)

  • Clang 3.3, 3.4 (supported: 3.5+)

详细更新说明和源码下载 https://github.com/onqtam/doctest/releases/tag/2.0.0

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处,尊重他人劳动共创开源社区。
转载请注明:文章转载自 开源中国社区 [http://www.oschina.net]
本文标题:C++ 测试框架 doctest 2.0.0 发布,迁移至 C++11
加载中

最新评论(3

htfy96
htfy96
8102年了,也就BAT不思进取还在用阉了的C++98了,睁开眼看看国外都在用11/14/17
超级大黑猫
超级大黑猫

引用来自“Artrener”的评论

自废武功?
为何这么说???
Artrener
Artrener
自废武功?
返回顶部
顶部