问题描述
我们正在尝试为VC ++创建CPP单元测试 DLL project,使用NATIVE C ++(在UT项目中 - >添加所有依赖项 (reference / includes / lib) 为MSDN中提到的每个过程
。)
对于相应的UUT cpp文件,为类创建了一个对象并编译了UT项目,UT项目编译成功,但是当试图运行TEST-CASE时,我们得到了"消息
无法设置执行上下文以运行测试"。
Hi,
We are trying to create CPP unit test for VC++ DLL project, with NATIVE C++ (in UT project --> added all the dependencies (reference/includes/Lib) as per procedure mentioned in MSDN).
For the respective UUT cpp file, created an object for the class and compiled the UT project, the UT project compiled successfully, but when tried to run the TEST-CASE, we got "Message Failed to Set up the execution context to run the test".
请帮助我解决问题。
Please help me in resolving the issue.
推荐答案
请帮助我解决问题。
Please help me in resolving the issue.
这篇关于使用VC ++ 2012进行CPP单元测试 - 消息无法设置执行上下文以运行测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!