Boost.Test 是如何测试的?
How is Boost.Test tested?
Boost.Test框架本身是否有任何测试? Boost 似乎对其他库进行了很多回归测试,当然是用 Boost.Test 编写的。但是如何确保测试框架本身是正确的呢?
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.Test框架本身是否有任何测试? Boost 似乎对其他库进行了很多回归测试,当然是用 Boost.Test 编写的。但是如何确保测试框架本身是正确的呢?
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,它们正在测试终端的字符串输出是否符合预期输出。