Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need an Eclipse plug-in #40

Closed
GoogleCodeExporter opened this issue Jul 28, 2015 · 17 comments
Closed

Need an Eclipse plug-in #40

GoogleCodeExporter opened this issue Jul 28, 2015 · 17 comments

Comments

@GoogleCodeExporter
Copy link
Contributor

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

@anb0s
Copy link

anb0s commented Apr 13, 2016

Just tried Eclipse Neon with CDT 9.0 included:

  1. Create a C++ project with gtest library linked
  2. Include samples folder from gtest release (1.7.0) and compile it with own main() or one from samples
  3. Install the plugin "C/C++ Unit Testing Support":
    unittestingsupport
  4. Create a launch config and execute:
    unittestingsupport-runner
  5. You should see the results in view:
    unittestingsupport-runner-view

@quicknir
Copy link

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".

@gennadiycivil
Copy link
Contributor

This issue is fairly old and there hasn't been much activity on it. Closing, but please re-open if it still occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants