cpptraining.GettingCppUTestRunning

<--Back

=Introduction= Now it is time to get a simple example running to verify everything works.

=Before Continuing= Make sure you have already installed the CDT and built CppUTest. For the remainder of this discussion, I'll assume that CppUTest was downloaded and built in the following directory: c:\workspaces\CppUTest2_1 include page="cpptraining.SettingUpInitialProject" include page="cpptraining.ConfiguringTheProjectForCppUTest" =Creating A Test= code format="cpp"
 * Now, add another source file called ActualSmokeTest.cpp:
 * 1) include 

TEST_GROUP(Foo) { };

TEST(Foo, 1Equals1) { LONGS_EQUAL(1, 1); } code code OK (1 tests, 1 ran, 1 checks, 0 ignored, 0 filtered out, 0 ms) code <--Back
 * Run your project again and see that the one test is passing: