tag:blogger.com,1999:blog-6040130426871585154.post8906975495346306528..comments2023-04-01T16:47:05.870+02:00Comments on Feelings Erased: Eclipse Juno has landed with unit testing support for C++Grzegorz Gałęzowskihttp://www.blogger.com/profile/07005911345134430356noreply@blogger.comBlogger11125tag:blogger.com,1999:blog-6040130426871585154.post-82292935211163111582013-10-01T09:49:36.721+02:002013-10-01T09:49:36.721+02:00Iflaah, that's great to hear! :-)Iflaah, that's great to hear! :-)Grzegorz Gałęzowskihttps://www.blogger.com/profile/07005911345134430356noreply@blogger.comtag:blogger.com,1999:blog-6040130426871585154.post-28631848880362638432013-09-30T08:44:50.507+02:002013-09-30T08:44:50.507+02:00Hello Grzegorz,
Thank you very much, I finally ac...Hello Grzegorz,<br /><br />Thank you very much, I finally achieved what I wanted to; gtest report.<br /><br />Iflaah Anonymoushttps://www.blogger.com/profile/09418417260185124963noreply@blogger.comtag:blogger.com,1999:blog-6040130426871585154.post-85435235915458646652013-09-25T08:05:25.986+02:002013-09-25T08:05:25.986+02:00Hello Grzegorz,
Firstly, thank you very much for ...Hello Grzegorz,<br /><br />Firstly, thank you very much for your continuous support.<br /><br />I'll try the same argument to run with boost again.<br />I made attempts to make googletest work, following the same way as have mentioned in your page.<br /><br />So, I somehow made to resolve the inclusion problem of gtest/gtest.h.<br />Now, when I build the project, there are multiple compile-time errors which point to multiple LOCs of gtest.h for file handlers.<br /><br />I'll surely check the example that you have suggested now. By the way I am working on Windows platform.<br /><br />--IflaahAnonymoushttps://www.blogger.com/profile/09418417260185124963noreply@blogger.comtag:blogger.com,1999:blog-6040130426871585154.post-72853037574278516762013-09-24T22:22:36.572+02:002013-09-24T22:22:36.572+02:00Iflaah,
I think so. Under the hood, CDT unit test...Iflaah,<br /><br />I think so. Under the hood, CDT unit test runner uses console test runners to do the job, so whatever you put into the Arguments tab goes directly as a parameter to the console runner.<br /><br />So as long as console runner supports saving report file, you can use this way to obtain the report. <br /><br />I don't know boost test much, but I found <a href="http://stackoverflow.com/questions/16146977/how-to-get-detail-of-failing-unit-test-in-xml-output" rel="nofollow">an example commanline arguments set</a> that could produce a report.Grzegorz Gałęzowskihttps://www.blogger.com/profile/07005911345134430356noreply@blogger.comtag:blogger.com,1999:blog-6040130426871585154.post-5911689643856837232013-09-24T11:00:50.859+02:002013-09-24T11:00:50.859+02:00Hello Grzegorz,
Can you, please, tell me that if ...Hello Grzegorz,<br /><br />Can you, please, tell me that if the same can work with boost?<br /><br />I am making tries to make it work with gtest but unfortunately my cdt-test-runner is unable to locate "gtest/gtest.h".<br /><br />--Iflaah Anonymoushttps://www.blogger.com/profile/09418417260185124963noreply@blogger.comtag:blogger.com,1999:blog-6040130426871585154.post-90442199068165348532013-09-21T17:24:21.274+02:002013-09-21T17:24:21.274+02:00Hi, Iflaah,
As far as I know, the plugin itself d...Hi, Iflaah,<br /><br />As far as I know, the plugin itself does not produce any useful report. Sure, there are build reports and run reports (you can get those e.g. by launching the CDT test runner, then going to the project directory on disk and searching for files modified less than a minute ago), but I could not find any interesting information there.<br /><br />On the other hand, if you're interested in gtest logs from the eclipse run, this is easy to do. Just go to the run configuration and on the Arguments tab of your unit test run configuration add the following:<br /><br />--gtest_output=xml:report.xml<br /><br />This will make the goole test runner that's triggered from eclipse save XML report in the passed path.Grzegorz Gałęzowskihttps://www.blogger.com/profile/07005911345134430356noreply@blogger.comtag:blogger.com,1999:blog-6040130426871585154.post-14692092838549060482013-09-19T16:17:17.208+02:002013-09-19T16:17:17.208+02:00Hello Grzegorz,
I hope you can help me dealing wi...Hello Grzegorz,<br /><br />I hope you can help me dealing with my problem.<br /><br />I am looking for the test execution logs generated by the cdt-tests-runner (whether the code is unit-tested with boost or Gtest). Can you please, tell me where I can find the logs, I mean the location?<br /><br />Or is there some way that I can save those test-runs or export them somehow to some location on my local drive?<br /><br />I am able to unit-test my code and see the test execution in the C/C++Unit console but I'm not much interested in that.<br /><br />I am using Eclipse Kepler 4.0 and have installed CDT 8.2 plugin for that for the purpose of C++.<br /><br />--Iflaah<br />Anonymoushttps://www.blogger.com/profile/09418417260185124963noreply@blogger.comtag:blogger.com,1999:blog-6040130426871585154.post-17490766563138711032013-08-27T11:02:46.865+02:002013-08-27T11:02:46.865+02:00Hi, nevgeniev.
I'm not sure whether you can i...Hi, nevgeniev.<br /><br />I'm not sure whether you can install the plugin from eclipse marketplace.<br /><br />As you probably know, eclipse has _two_ mechanisms for installing plugins.<br /><br />Try going to Help->Install New Software-> choose "--All Available Sites--" in the "Work With:" box-> pick "Programming Languages" category and there you should see something like "C/C++ Unit Testing Support"Grzegorz Gałęzowskihttps://www.blogger.com/profile/07005911345134430356noreply@blogger.comtag:blogger.com,1999:blog-6040130426871585154.post-57360319947729104032013-08-27T01:04:23.809+02:002013-08-27T01:04:23.809+02:00could you be a bit more specific WHAT to download ...could you be a bit more specific WHAT to download from market place?? as there is no "unit testing support" plugin on marketplcacenevgenievhttps://www.blogger.com/profile/12201438846539790082noreply@blogger.comtag:blogger.com,1999:blog-6040130426871585154.post-80891208744039289322012-07-11T23:15:17.308+02:002012-07-11T23:15:17.308+02:00Hi, Maxx,
I just looked at my set of installed pl...Hi, Maxx,<br /><br />I just looked at my set of installed plugins and Unit Testing support appears as:<br /><br />C/C++ Unit Testing Support | 7.0.0.201206111645 | org.eclipse.cdt.testsrunner.feature.feature.group | Eclipse CDT<br /><br />I found this by going to Help->About Eclipse SDK->Installation Details.<br /><br />You may have to install this plugin yourself by going to Help->Install New Software and looking there.<br /><br />I wasn't aware that it's not by default in eclipse C++ IDE. I installed the eclipse classic and downloaded the C++ support after.Grzegorz Gałęzowskihttps://www.blogger.com/profile/07005911345134430356noreply@blogger.comtag:blogger.com,1999:blog-6040130426871585154.post-24839408874711305042012-07-11T20:08:50.033+02:002012-07-11T20:08:50.033+02:00Hi Grzegorz,
I'm a little new with Eclipse (b...Hi Grzegorz,<br /><br />I'm a little new with Eclipse (but not with C++) and I really liked what I saw from this Test Runner. Nevertheless, I can't make it work, it doesn't even shows as an installed plug-in. <br /><br />I've just downloaded Eclipse IDE for C/C++ Developers from "http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers/junor". Am I missing something? Maybe I must download Eclipse complete version. <br /><br />Currently I'm running Ubuntu 10.04 Lucid Lynx (work place limitations) and I would like to install Eclipse via apt or Synaptic.<br /><br />Thanks in advance!Maxxhttps://www.blogger.com/profile/04474828991338439371noreply@blogger.com