用于运行测试和浏览报告的 Eclipse (CDT) 插件 [英] Eclipse (CDT) plugin for running tests and browsing report

查看:41
本文介绍了用于运行测试和浏览报告的 Eclipse (CDT) 插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google 的回答(听到!听到!)和 Eclipse Market Place 搜索结果关于这个主题简直让我发疯!显然,提议的 SO 答案也没有真正的帮助.

Google's answers (hear! hear!) and Eclipse Market Place search results on this topic simply drive me crazy! And apparently the proposed SO answers aren't really helpful either.

我正在寻找一个 Eclipse 插件,它允许我浏览由谷歌测试运行程序生成的 JUnit 报告 XML 兼容单元测试报告.

I'm looking for an Eclipse plugin, that allows me to browse a JUnit report XML compliant unit test report produced from a google test runner.

很高兴有功能:

  • 从失败报告跳转到源
  • 构建后自动运行测试.

我很确定存在适用于 Eclipse CDT 的(免费)插件,它实现了这些要求,我太笨了,找不到它:-).这里可能有更聪明的人/女孩吗?

I'm pretty sure a (free) plugin suitable for Eclipse CDT exists, that realizes these requirements, I'm just too stupid to find it :-). May be any smarter guy/gal here?

推荐答案

自 JUNO 以来,有一个 C++ 单元测试支持包.它是 CDT 的包.我只将它用于 boost 测试,但 AFAIK 它也支持 googletest.

Since JUNO there is a C++ Unit testing support package. It is package of the CDT. I only used it with boost test, but AFAIK it also supports googletest.

@mkaes 评论把我推到了它!

  1. 安装 CDT(帮助->安装软件->CDT)可选的 C/C++ 单元测试支持
  2. 使用运行方式"->运行配置"->C/C++ 单元测试"创建一个新的运行器
  3. 在C/C++ 测试"选项卡中为测试运行程序"选择Google 测试运行程序"
  4. 在主要"选项卡中选择您的测试项目可执行文件
  5. 运行它,并在(重建和)执行后显示C/C++ 单元"视图

在此处查看更多插图和详细说明:Eclipse Juno 已提供对 C++ 的单元测试支持

Look here for more illustrated and detailed instructions: Eclipse Juno has landed with unit testing support for C++

这篇关于用于运行测试和浏览报告的 Eclipse (CDT) 插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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