title: Setting Up Google Test to Run through C/C++ Test Runner Plug-In in Eclipse on Ubuntu 12.04
body: <p>Here's what I've tried:</p>
  
  <p>In project properties I have included libgtest_main.a and libgtest.a under the libaries tab.</p>
  
  <p>In run configurations under the C++ Unit tab, I have set C/C++ testing to Google Tests Runner.</p>
  
  <p>In run configs, under the main tab, the C/C++ application is set as the binary file that was created during the build of my project. </p>
  
  <p>I have created a test folder as part of my project and written my tests in there.</p>
  
  <p>This is my code:</p>
  
  <pre><code>#include "../src/agent.h"
  #include "../src/agent.cpp"
  #include "gtest/gtest.h"
  
  TEST(AgentTest, voidConstructorWorksProperly) {
  Agent testAgent = Agent();
  ASSERT_EQ(0, testAgent.getBrain());
  }
  
  
  int main(int argc, char **argv) {
      testing::InitGoogleTest(&amp;argc, argv);
      return RUN_ALL_TESTS();
  
  }
  </code></pre>
  
  <p>I'm getting a syntax error on on the TEST function and a "could not be resolved" on the InitGoogleTest and RUN_ALL_TESTS.</p>
  
  <p>Hope someone can help - I've been at this for hours and it seems like something simple I've missed.</p>