austgl / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Need an Eclipse plug-in #40

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would be nice to have an Eclipse plug-in for Google Test.

Josha at industrial logic has done some work here.

Original issue reported on code.google.com by shiq...@gmail.com on 29 Sep 2008 at 3:17

GoogleCodeExporter commented 9 years ago
Any news in this area? 

Original comment by hlindst...@gmail.com on 10 Dec 2009 at 9:05

GoogleCodeExporter commented 9 years ago
I was using the Industrial Logic plugin but it doesn't seem to work with the 
latest
edition of eclipse...

Original comment by mikelong...@gmail.com on 10 Dec 2009 at 10:21

GoogleCodeExporter commented 9 years ago
I'm also waiting for this feature. Thanks in advance.

Original comment by pivak...@gmail.com on 22 Mar 2010 at 5:56

GoogleCodeExporter commented 9 years ago
Putting myself in the queue.
For me it is a reason to use (or not to use if not available).

Original comment by lkrec...@gmail.com on 28 Jun 2010 at 4:47

GoogleCodeExporter commented 9 years ago
I am also very interested in an Eclipse plug-in.  

Original comment by proengi...@gmail.com on 28 Jun 2010 at 5:04

GoogleCodeExporter commented 9 years ago
Guys, don't just wait for this to happen, because it won't happen is we all 
just wait.  ;-) gtest is a community project.  Feel free to contribute a patch!

Original comment by w...@google.com on 28 Jun 2010 at 5:09

GoogleCodeExporter commented 9 years ago
Such a plugin would use the XML output of gtest as a base?
I know Eclipse has a UnitTest API that we could hook into.

Original comment by phil.kur...@gmail.com on 29 Mar 2011 at 6:47

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I was also searching for a gtest plugin for eclipse, because it really sucks to 
write scripts to compile and run the test cases outside the IDE. 

Now I'm running it without a plugin, you just need to set up one addition 
configuration for gtest.

I will try to describe may steps:

1. Eclipse creates already two configurations, if you create a new C++ project, 
Debug and Release.
2. First you need to modify one of your actual configuration, so that eclipse 
excludes your test source. I think everybody of you who uses eclipse already do 
it or should do.
If you source directory is "src/ and test is "src/test":
Project Properties -> C/C++ Generals -> Path and Symbols -> Source Location -> 
Select the folder -> Edit Filter -> Add: test/*. If there is no folder, just 
add your main source directory.

4. Now we need to create a configuration for gtest.
5. Project Propereties -> Manager Configuration -> New -> Set name "Test" -> OK
6. Set the configuration as active.
7. Now we need again to modify the exclude path, like in step 3. We remove the 
test/* filter and add main.cpp
8. Finally we need to set the gtest lib.
9. Project Properties -> C/C++ Generals -> Path and Symbols -> Libraries -> 
add: gtest and gtest_main
Maybe you have to set the library path, depends how/where you install gtest.

Original comment by viktorgt...@gmail.com on 2 Jun 2011 at 5:00

GoogleCodeExporter commented 9 years ago
has anybody tried out the plugin from 
https://github.com/keith-ray-IL/Eclipse-C---GoogleTest-Runner  It is supposed 
to work with Eclipse 3.5 and 3.6

Original comment by raphael....@gmail.com on 31 Dec 2011 at 6:43

GoogleCodeExporter commented 9 years ago
I am using https://github.com/xgsa/cdt-tests-runner/wiki/Tutorial

It will be a default plugin in Eclipse CDT 9.0.

Works great

Original comment by sylvain....@gmail.com on 16 Feb 2012 at 8:57

GoogleCodeExporter commented 9 years ago
@Sylvian: Are your using GTest  

Original comment by pushp...@gmail.com on 23 Aug 2012 at 7:10

GoogleCodeExporter commented 9 years ago
In case you land here before you find that ECLIPSE NOW HAS SUPPORT FOR GOOGLE 
TEST:
http://stackoverflow.com/questions/16741400/eclipse-cdt-plugin-for-running-tests
-and-browsing-report

Original comment by larrylam...@gmail.com on 7 Aug 2013 at 4:01