在Visual Studio中查看Google测试结果 [英] Viewing Google Test results within Visual Studio

查看:126
本文介绍了在Visual Studio中查看Google测试结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在Visual Studio中查看Google测试结果?如果是,怎么办?
我正在使用Google Test 1.5.0和Visual Studio 2010

Is there a way to view Google Test results within Visual Studio? If yes, how?
I'm using Google Test 1.5.0 and Visual Studio 2010

直到现在,我一直从命令行使用Google Test.
我已经在其他IDE(eclipse ...)上看到了这样的集成,但是在VS

Until now I've been using Google Test from the command line.
I've seen such integrations on other IDEs (eclipse...) but not yet in VS

推荐答案

查看 GoogleTestAddin -我认为是你想要什么.
引用CodePlex描述:

Look at GoogleTestAddin - I think it's what you want.
Quoting from the CodePlex description:

GoogleTestAddin是Visual Studio 2008和2010的加载项.

GoogleTestAddin is an Add-In for Visual Studio 2008 and 2010.

通过选择它们,可以更轻松地执行/调试googletest函数.

It makes it easier to execute/debug googletest functions by selecting them.

您将不再需要将测试应用程序的命令参数设置为仅执行指定的功能或测试.

You'll no longer have to set the command arguments of your test application to execute only specified functions or tests.

googletest输出重定向到Visual Studio输出窗口. 在失败的测试中,您可以通过双击错误消息轻松跳转到代码.

The googletest output is redirected to the Visual Studio output window. On failed tests you can easily jump to the code by doubleclick the error message.

这篇关于在Visual Studio中查看Google测试结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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