问题标签 [microsoft-cpp-unit-test]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c++ - MS C++ 单元测试框架的 Assert.Inconclusive 类似物或如何在运行时跳过测试?
我希望能够从它的身体中跳过当前的测试。当然,我可以简单地这样做:
但这会将测试显示为“通过”。我想让用户知道如果(condition)
发生测试既不会通过也不会失败。
在 C# 中我们有Assert.Inconclusive()
,所以这个函数的一些 C++ 类似物将是最好的。Microsoft Cpp 单元测试框架中有类似的东西还是可以实现?
c++ - 如何在 Visual Studio 的 CppUnitTestFramework (C++) 中为 TEST_METHOD 设置内联超时?
如何为 TEST_METHOD 内联设置超时或“允许的持续时间”?