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

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

问题描述

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



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



分析单元测试输出应在哪里显示?如果解析的输出应显示在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天全站免登陆