By default, the
Micro Focus Unit Testing view displays the test cases for the last unit test project that was run, or is empty if a unit test project is yet to be run.
-
Click the
Micro Focus Unit Testing tab. (If it is not already displayed, click
.)
You will notice that the view does not yet show any test cases. You must first run the unit test project that contains them. Only then will you see the test fixtures (the
.cbl files within the project), and test cases within them.
-
In COBOL Explorer, select
TestAirportDemo, then on the Eclipse toolbar, click
(Run).
The project runs and the tests are loaded into the
Micro Focus Unit Testing view. This project currently contains one test fixture file (DistanceTest.cbl), which contains one test case (MFUT_DISTANCETEST). The test case automatically ran when you ran the unit test project.
-
Select the test case to display the test output in the Test Results pane.
The test case passes, but that is because it does not actually do anything meaningful yet. In the next step, we will enhance the test by adding some code to it.