【问题标题】:How is Boost.Test tested?Boost.Test 如何测试?
【发布时间】:2020-03-06 22:30:41
【问题描述】:

Boost.Test 框架本身是否有任何测试? Boost 似乎对其他库有很多回归测试,当然是用 Boost.Test 编写的。但是如何确保测试框架本身是正确的呢?

【问题讨论】:

  • 所以你说不是?或者你在说什么?
  • 好吧,我把它作为评论而不是答案,因为我对你的任何一个问题都没有答案,但看起来 Boost.Test 框架可以被视为可信计算根据。如果 Boost.Test 被破坏,那么我们不能可靠地说 Boost.Test 所做的任何 Boost.Test 测试都是正确的。我们只需要根据其他测量结果假设 Boost.Test 是正确的。这可能是使其尽可能简单的一个论据。不过,如果我知道任何 Boost.Test 测试,我就会回答这个问题。
  • 这是 Boost.Test 回归矩阵:boost.org/development/tests/develop/developer/test.html。这里有一个或多或少是最新的 Travis:github.com/boostorg/test,我正在努力完善 Appveyor。正如接受的答案所指出的,测试在这里:github.com/boostorg/test/tree/develop/test

标签: c++ testing boost boost.test


【解决方案1】:
boost/libs/test$ ls test
Jamfile.v2           execution_monitor-ts inputs               selfcontained.cpp    usage-variants-ts
README.md            framework-ts         multithreading-ts    smoke-ts             utils-ts
baseline-outputs     gen_coverage.sh      prg_exec_monitor-ts  test-organization-ts writing-test-ts

所以在我看来,Boost.Test 有大量的测试!

粗略一看,这些测试似乎没有使用 boost.test,它们正在测试来自终端的字符串输出的预期输出。

【讨论】:

  • 谢谢!实际上我错过了这些,因为我的本地 boost 安装只包含我们构建的库,并且我们只使用 Boost.Test 的标头版本
  • Boost 的发布包中不包含库的测试。
猜你喜欢
  • 1970-01-01
  • 2021-07-25
  • 1970-01-01
  • 2011-10-24
  • 1970-01-01
  • 2023-03-26
  • 1970-01-01
  • 2021-12-06
  • 1970-01-01
相关资源
最近更新 更多