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

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

问题描述

Google的答案(听到!)和Eclipse Market Place在这个主题上的搜索结果只是驱使我疯了!显然,提出的答案也不是真正有用的。



我正在寻找一个Eclipse插件,允许我浏览一个JUnit报告XML兼容单元测试报告



很高兴拥有以下功能:







我会在失败报告后自动运行测试。相当肯定一个(免费)插件适合Eclipse CDT存在,实现这些要求,我只是太愚蠢的找到它:-)。

解决方案


自从JUNO有一个C ++单元测试支持包。它是CDT的包。我只使用它与boost测试,但AFAIK它也支持googletest。


@ mkaes 评论将我推送到它!


  1. 安装CDT可选C / C ++单元测试支持

  2. 使用运行方式 - >运行配置 - > C / C ++单元测试创建新的运行器

  3. 选择Google测试运行器在C / C ++测试标签中选择测试项目可执行文件

  4. 运行它,

在这里查看更多说明和详细说明: Eclipse Juno已降级,支持C ++的单元测试


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.

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.

Nice to have features:

  • jump to the source from failure reports
  • run the tests automatically after building.

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?

解决方案

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 comment pushed me to it!

  1. Install the CDT optional C/C++ Unit Test support
  2. Create a new Runner using 'Run As -> Run Configurations -> C/C++ Unit Test
  3. Choose 'Google Tests Runner' for 'Tests Runner' in the 'C/C++ Testing' tab
  4. Choose your testing project executable in the 'Main' tab
  5. Run it, and the 'C/C++ Unit' view shows up after (rebuild and) execution

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

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

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