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

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

问题描述

Google的答案(听到!听到!)和Eclipse Market Place关于这个话题的搜索结果只是让我疯狂!显然,提出的SO答案也不是很有帮助。



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




  • 跳转来自故障报告的来源

  • 建立后自动运行测试。



我是很确定一个适用于Eclipse CDT(免费)的插件存在,这意味着这些要求,我只是太愚蠢地找到它:-)。可能是任何更聪明的家伙/ gal在这里?

解决方案


由于JUNO有一个C ++单元测试支持包。它是CDT的包装。我只用boost测试,但是AFAIK也支持googletest。


@ mkaes 评论推我!


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

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

  3. 选择Google测试运行器 C / C ++测试选项卡中的测试运行器

  4. 在主选项卡中选择您的测试项目可执行文件

  5. 运行它, C / C ++ Unit视图显示在(重建和执行)之后

查看更多说明和详细说明: 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天全站免登陆