Comments (17)
Just tried Eclipse Neon with CDT 9.0 included:
- Create a C++ project with gtest library linked
- Include samples folder from gtest release (1.7.0) and compile it with own main() or one from samples
- Install the plugin "C/C++ Unit Testing Support":
- Create a launch config and execute:
- You should see the results in view:
from googletest.
Any news in this area?
Original comment by [email protected]
on 10 Dec 2009 at 9:05
from googletest.
I was using the Industrial Logic plugin but it doesn't seem to work with the
latest
edition of eclipse...
Original comment by [email protected]
on 10 Dec 2009 at 10:21
from googletest.
I'm also waiting for this feature. Thanks in advance.
Original comment by [email protected]
on 22 Mar 2010 at 5:56
from googletest.
Putting myself in the queue.
For me it is a reason to use (or not to use if not available).
Original comment by [email protected]
on 28 Jun 2010 at 4:47
from googletest.
I am also very interested in an Eclipse plug-in.
Original comment by [email protected]
on 28 Jun 2010 at 5:04
from googletest.
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 [email protected]
on 28 Jun 2010 at 5:09
from googletest.
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 [email protected]
on 29 Mar 2011 at 6:47
from googletest.
[deleted comment]
from googletest.
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 [email protected]
on 2 Jun 2011 at 5:00
from googletest.
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 [email protected]
on 31 Dec 2011 at 6:43
from googletest.
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 [email protected]
on 16 Feb 2012 at 8:57
from googletest.
@Sylvian: Are your using GTest
Original comment by [email protected]
on 23 Aug 2012 at 7:10
from googletest.
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 [email protected]
on 7 Aug 2013 at 4:01
from googletest.
I'M HAVING A HARD TIME FINDING THE RIGHT PLUGINS FOR ECLIPSE DOES ANYONE KNOW A
WEBSITE THAT HAS JUST ALL OF THEM
Original comment by [email protected]
on 1 May 2015 at 1:54
from googletest.
Can you check whether this works with type parameterized tests? I filed a bug about this in CDT 8.7 or 8.8: https://bugs.eclipse.org/bugs/show_bug.cgi?id=479289 (text reproduced here for simplicity).
When you use type parametrized tests in gtest, you get output of the following form:
[----------] 2 tests from TestCaseName/0, where TypeParam = TypeStruct<float, true>
[ RUN ] TestCaseName/0.TestName
[ OK ] TestCaseName/0.TestName (0 ms)
[ RUN ] TestCaseName/0.AnotherTestName
[ OK ] TestCaseName/0.AnotherTestName (1 ms)
[----------] 2 tests from TestCaseName/0 (1 ms total)
[----------] 2 tests from TestCaseName/1, where TypeParam = TypeStruct<float, false>
[ RUN ] TestCaseName/1.TestName
[ OK ] TestCaseName/1.TestName (1 ms)
[ RUN ] TestCaseName/1.AnotherTestName
[ OK ] TestCaseName/1.AnotherTestName (0 ms)
[----------] 2 tests from TestCaseName/1 (1 ms total)
When Eclipse sees this, it complains:
"Unknown error during parsing Google Test module output: A test case "TestName" belongs to test suite "TestCaseName/1", but the last started suite is "TestCaseName/0".
from googletest.
This issue is fairly old and there hasn't been much activity on it. Closing, but please re-open if it still occurs.
from googletest.
Related Issues (20)
- [Bug]: Please title this bug report
- [Bug]: Again, Google, wtf is wrong with you
- [Bug]: Google has a wicked infested mindset and it is going down because of it. HOT 1
- [Bug]: Double free or corruption detected in first parameterized test HOT 3
- [FR]: Expose SetUpTestSuite and TearDownTestSuite getters and setters. HOT 1
- [Bug]: gtest_main.so doesn't contain symbols from gtest.so HOT 2
- [Bug]: Flaky infinite `AddressSanitizer:DEADLYSIGNAL` loop when using gtest in github CI HOT 5
- [Bug]: Cannot use structured binding in name generator lambda in INSTANTIATE_TEST_SUITE_P HOT 2
- [Bug]: A race condition exist between the Watcher thread and the main thread terminating.
- [Bug]: `ReturnRef` of type `shared_ptr<Mock<...>> const&` segfaults HOT 2
- [FR]: Add support for building GoogleTest on Xbox platforms HOT 2
- [Bug]: Improve compile-time checking of return values from actions in EXPECT_CALL HOT 11
- EXPECT_EXIT、ASSERT_EXITにてstderrの取得のため以下を実行するとシグナル6で異常終了する。 HOT 1
- [FR]: Skipped reasons in JSON output
- bazel Windows builds are currently failing for automated PR runs on GitHub
- Matchers for C++20 ranges
- [Bug]: Windows Death Tests have different behavior for CLI options compared to other platforms HOT 1
- [Bug]: Compile break for chrono timepoint formatting for macOS target < 13.3 and Xcode 15.3
- [Bug]: StrictMock construction crashed when included in benchmark fixture HOT 1
- What is the correct way to report an error from an Environment teardown?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from googletest.