Visual Studio 本机单元测试:调试/控制台输出? [英] Visual Studio native unit testing: Debug/console output?

查看:62
本文介绍了Visual Studio 本机单元测试:调试/控制台输出?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能告诉我在 Visual Studio 2012 的本机 (C++) 测试项目中运行单元测试时如何启用或获取调试或控制台文本输出?

Can anyone tell me how to enable or get debug or console text output when running unit tests in a native (C++) test project in Visual Studio 2012?

答案不应包含短语使用 Google 测试".

Answer should not include the phrase, "use Google Test".

推荐答案

如果在测试资源管理器窗口中的任何测试上右键单击并选择调试",调试输出将显示在调试输出窗口中.否则就不行.

The debug output shows in the debug output window if you right-click and choose `debug' on whichever test in the test explorer window. Otherwise it doesn't.

这篇关于Visual Studio 本机单元测试:调试/控制台输出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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