在Eclipse中找到解析的Boost.Test输出的位置 [英] Where to find the parsed Boost.Test output in Eclipse

查看:279
本文介绍了在Eclipse中找到解析的Boost.Test输出的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

已有一个线程这里部分回答我的问题。



在Eclipse 3.7.2我遵循那里提供的方法,我可以成功地完成步骤创建并设置一个新的错误解析器并将其添加到我当前的项目。在执行我的Boost.Test(boost rel。1.48.0)单元测试后,在Eclipse控制台上,我获得与没有解析时获得的输出相同的输出(例如,在Eclipse外部执行单元测试时,终奌站))。我搜索了一个新的Eclipse控制台,其中可以显示解析的单元测试输出(类似于控制台,例如gcov,gprof或cppcheck在Eclipse中),但没有发现一样。



解析的单元测试输出应显示在哪里?如果解析的输出将显示在Eclipse控制台视图中,是否有任何建议,我的情况下解析可能出了什么问题?



提前感谢。 / p>

PS:感谢casperOne和kleopatra教我的方式。

解决方案

如果你使用Eclipse,还有一个非常好的插件叫做 TestRunner 用于运行CDT单元测试,很像Java或Python单元测试。它为你处理单元测试解析。你将得到一个单独的控制台窗口进行单元测试,并使用级别过滤器来排列它们。单击错误/警告可以转到编辑器中的单元测试行号。您还可以在Eclipse中设置详细程度级别以及其他一些设置。



您可以使用Eclipse更新中的以下链接直接安装插件 https:// raw。 github.com/xgsa/cdt-tests-runner/tests_runner_demo/testsrunner/org.eclipse.cdt.testsrunner-updatesite/site.xml


There is already a thread here that partially answers my question .

On Eclipse 3.7.2 I followed the approach provided there and I could successfully accomplish the steps creating and setting up a new error parser and adding it to my current project. After executing my Boost.Test (boost rel. 1.48.0) Unit Test, on the Eclipse console I get the same output as the output I get when no parsing is done (e.g. when executing the Unit Test outside Eclipse (e.g. on a Linux terminal)). I searched for a new Eclipse console where the parsed Unit Test output could be displayed (similar to the consoles by e.g. gcov, gprof or cppcheck in Eclipse) but found nothing alike.

Where should the parsed unit test output be displayed? In case the parsed output shall be displayed in the Eclipse Console view, are there any suggestions what might have gone wrong with the parsing in my case?

Thanks in advance.

P.S.: Thanks to casperOne and kleopatra for teaching me manners.

解决方案

If you're using Eclipse there is also a really nice plugin called TestRunner for running CDT unit tests much like Java or Python unit tests. It handles the unit-testing parsing for you. You'll get a separate console window for your unit tests and it arranges them with level filters. Clicking on an error/warning takes you to the unit-test line number in your editor. You also can set the verbosity level as well as a few other settings from inside Eclipse.

You can directly install the plugin by using the following link in Eclipse updates https://raw.github.com/xgsa/cdt-tests-runner/tests_runner_demo/testsrunner/org.eclipse.cdt.testsrunner-updatesite/site.xml

这篇关于在Eclipse中找到解析的Boost.Test输出的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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