使用VC ++ 2012进行CPP单元测试 - 消息无法设置执行上下文以运行测试 [英] CPP unit test using VC++ 2012 - Message Failed to Set up the execution context to run the test

查看:256
本文介绍了使用VC ++ 2012进行CPP单元测试 - 消息无法设置执行上下文以运行测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述






我们正在尝试为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. 

推荐答案

b


我们正在尝试使用NATIVE为VC ++ DLL 项目创建CPP单元测试C ++(在UT项目中 - >添加了所有依赖项

(参考/包含/ 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. 


这篇关于使用VC ++ 2012进行CPP单元测试 - 消息无法设置执行上下文以运行测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆