在Visual Studio中查看Google测试结果

编程入门 行业动态 更新时间:2024-10-25 18:24:08
本文介绍了在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测试结果

本文发布于:2023-11-05 09:11:19,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1560447.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:测试   Visual   Studio   Google

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!