5. Installing CxxTest


The final step is to install CxxTest, a C++ unit testing plugin for Eclipse.
  1. If it is not already running, launch Eclipse. Choose a workspace. Then select Help->Software Updates->Find and Install...:
  2. Select the "Choose new features to install" radio button; then click the Next button:
  3. Add an entry for the VT CS Eclipse Update Site:
    1. Click the "New Remote Site..." button:
    2. In the dialog box that appears, enter this name:
              VT CS Eclipse Update Site
      
      and this URL:
               http://web-cat.cs.vt.edu/eclipse/
      
  4. Click the OK button, and Eclipse will add this site to its list of update sites:
  5. Click the Finish button, and Eclipse will display a dialog in which you can select the features you want. Click the + symbol next to "VT CS Eclipse Update Site" to reveal its contents. Then click the + symbol next to "Web-CAT" to reveal its contents. Then click the + symbol next to "Web-CAT Eclipse C++ Features...":
  6. Click the Next button. On the next dialog box, carefully read the license agreement; then select the "I accept the terms..." radio button:
  7. Click the Next button, verify that these features will be installed in the folder where Eclipse is located on your computer:
  8. Click the Finish button. Eclipse will download the components. When the download box disappears, a dialog will appear asking you to verify that you want to install the components:
  9. Click its Install All button. When it has completed, Eclipse will ask you if you want to restart the workbench. Click the Yes button, and Eclipse will restart.
  10. Congratulations! You've just installed CxxTest!
  11. You should now be able to open a VT C++ Perspective. To do so, click Eclipse's Open Perspective button:
  12. Select Other... from the menu, and Eclipse will display a list of the available perspectives. Select the VT C++ Perspective:
  13. Click the OK button, and the perspective will change to that of Virginia Tech's C++ perspective. If necessary, click the CxxTest tab near the bottom of the screen to reveal the unit testing interface:
  14. In addition to the options it offered before, the File->New... menu now offers you the choice of:
  15. If you have not used CxxTest before, you may want to access Virginia Tech's CxxTest Tutorial.

    If you have used CxxTest, but need a refresher, you may find it useful to read the CxxTest User's Guide. You can also download the CxxTest User's Guide.

    Have fun!


CS > 112 > Resources > Installing Eclipse > Installing CxxTest
This page maintained by Joel Adams.