Running a component test for Ada

Running a component test is as simple as it was to build and execute the application used in the runtime analysis exercises.

To execute the test:

  1. From the File menu, select Save Project.

  2. From the Window menu, select Close All

  3. On the Project Browser tab, select the MyAdaTest component testing node and then press the Build toolbar button.

  4. The test is executed as part of the build process - you will know the test has finished executing when the green execution light on the lower-right of the UI stops flashing.

You may have forgotten that the runtime analysis tools are still selected in the Build options; the files under test - CodeCoverage.adb and CodeCoverage.ads - are instrumented for code coverage analysis.

  1. In the Project Browser tab on the right-hand side of the screen, double-click the MyAdaTest component testing node in order to open the test report and Code Coverage report.

What is the result of your tests?